Skip to content

Commit 9fae704

Browse files
committed
simplify storagetype definition
1 parent eff92d4 commit 9fae704

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎src/tensors/abstractblocktensor/abstracttensormap.jl‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +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-
return if isconcretetype(eltype(TT))
111-
storagetype(eltype(TT))
112-
else
113-
Vector{scalartype(TT)}
114-
end
115-
end
109+
TensorKit.storagetype(::Type{TT}) where {TT <: AbstractBlockTensorMap} = storagetype(eltype(TT))

0 commit comments

Comments
 (0)