Skip to content

Commit d649f5c

Browse files
committed
replace eltype with scalartype
1 parent 412a45c commit d649f5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tensors/tensoroperations.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,11 @@ function blas_contract!(
360360
bstyle = BraidingStyle(sectortype(C))
361361
bstyle isa SymmetricBraiding ||
362362
throw(SectorMismatch("only tensors with symmetric braiding rules can be contracted; try `@planar` instead"))
363-
TC = eltype(C)
363+
TC = scalartype(C)
364364

365365
# check which tensors have to be permuted/copied
366-
copyA = !(TO.isblascontractable(A, pA) && eltype(A) === TC)
367-
copyB = !(TO.isblascontractable(B, pB) && eltype(B) === TC)
366+
copyA = !(TO.isblascontractable(A, pA) && scalartype(A) === TC)
367+
copyB = !(TO.isblascontractable(B, pB) && scalartype(B) === TC)
368368

369369
if bstyle isa Fermionic && any(isdual Base.Fix1(space, B), pB[1])
370370
# twist smallest object if neither or both already have to be permuted

0 commit comments

Comments
 (0)