Skip to content

Commit a098466

Browse files
committed
try and revert storagetype
1 parent 4eacaa1 commit a098466

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎src/tensors/abstractblocktensor/abstracttensormap.jl‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,4 @@ function Base.iterate(iter::TK.BlockIterator{<:AbstractBlockTensorMap}, state...
106106
end
107107
Base.getindex(iter::TK.BlockIterator{<:AbstractBlockTensorMap}, c::Sector) = block(iter.t, c)
108108

109-
function TensorKit.storagetype(::Type{TT}) where {TT <: AbstractBlockTensorMap}
110-
if eltype(TT) isa Union
111-
TU = eltype(TT)
112-
return TensorKit.promote_storagetype(TU.a, TU.b)
113-
else
114-
return TensorKit.storagetype(eltype(TT))
115-
end
116-
end
109+
TK.storagetype(::Type{TT}) where {TT <: AbstractBlockTensorMap} = storagetype(eltype(TT))

0 commit comments

Comments
 (0)