@@ -4,8 +4,8 @@ function TO.tensoradd_type(
44 TC, A:: AbstractBlockTensorMap , :: Index2Tuple{N₁,N₂} , :: Bool
55) where {N₁,N₂}
66 TA = eltype (A)
7- I = TK . sectortype (A)
8- Tnew = TKS . sectorscalartype (I) <: Real ? TC : complex (TC)
7+ I = sectortype (A)
8+ Tnew = sectorscalartype (I) <: Real ? TC : complex (TC)
99 if TA isa Union
1010 M = Union{TK. similarstoragetype (TA. a, Tnew),TK. similarstoragetype (TA. b, Tnew)}
1111 else
@@ -35,9 +35,9 @@ function TO.tensorcontract_type(
3535) where {N₁,N₂}
3636 spacetype (A) == spacetype (B) ||
3737 throw (SpaceMismatch (" incompatible space types: $(spacetype (A)) ≠ $(spacetype (B)) " ))
38-
39- I = TK . sectortype (A)
40- Tnew = TKS . sectorscalartype (I) <: Real ? TC : complex (TC)
38+
39+ I = sectortype (A)
40+ Tnew = sectorscalartype (I) <: Real ? TC : complex (TC)
4141 M = promote_storagetype (Tnew, eltype (A), eltype (B))
4242 return if issparse (A) && issparse (B)
4343 sparseblocktensormaptype (spacetype (A), N₁, N₂, M)
@@ -57,9 +57,9 @@ function TO.tensorcontract_type(
5757) where {N₁,N₂}
5858 spacetype (A) == spacetype (B) ||
5959 throw (SpaceMismatch (" incompatible space types: $(spacetype (A)) ≠ $(spacetype (B)) " ))
60-
61- I = TK . sectortype (A)
62- Tnew = TKS . sectorscalartype (I) <: Real ? TC : complex (TC)
60+
61+ I = sectortype (A)
62+ Tnew = sectorscalartype (I) <: Real ? TC : complex (TC)
6363 M = promote_storagetype (Tnew, typeof (A), eltype (B))
6464 return if issparse (A) && issparse (B)
6565 sparseblocktensormaptype (spacetype (A), N₁, N₂, M)
@@ -79,9 +79,9 @@ function TO.tensorcontract_type(
7979) where {N₁,N₂}
8080 spacetype (A) == spacetype (B) ||
8181 throw (SpaceMismatch (" incompatible space types: $(spacetype (A)) ≠ $(spacetype (B)) " ))
82-
83- I = TK . sectortype (A)
84- Tnew = TKS . sectorscalartype (I) <: Real ? TC : complex (TC)
82+
83+ I = sectortype (A)
84+ Tnew = sectorscalartype (I) <: Real ? TC : complex (TC)
8585 M = promote_storagetype (Tnew, eltype (A), typeof (B))
8686 return if issparse (A) && issparse (B)
8787 sparseblocktensormaptype (spacetype (A), N₁, N₂, M)
0 commit comments