Skip to content

Commit b7518f0

Browse files
committed
Restore old storagetype
1 parent c0fe19c commit b7518f0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/tensors/tensoroperations.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ for TTA in (:AbstractTensorMap, :AbstractBlockTensorMap), TTB in (:AbstractTenso
3131
) where {N₁, N₂}
3232
S = TK.check_spacetype(A, B)
3333
TC′ = TK.promote_permute(TC, sectortype(S))
34-
# explicitly compute storagetype here to work around eltype of AbstractTensorMap
35-
MA = TK.similarstoragetype(TK.storagetype(A), TC′)
36-
MB = TK.similarstoragetype(TK.storagetype(B), TC′)
37-
M = TK.promote_storagetype(MA, MB)
34+
M = TK.promote_storagetype(TK.similarstoragetype(A, TC′), TK.similarstoragetype(B, TC′))
3835
return if issparse(A) && issparse(B)
3936
sparseblocktensormaptype(S, N₁, N₂, M)
4037
else

0 commit comments

Comments
 (0)