We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
eltype
scalartype
1 parent 412a45c commit d82de02Copy full SHA for d82de02
1 file changed
src/tensors/tensoroperations.jl
@@ -360,11 +360,11 @@ function blas_contract!(
360
bstyle = BraidingStyle(sectortype(C))
361
bstyle isa SymmetricBraiding ||
362
throw(SectorMismatch("only tensors with symmetric braiding rules can be contracted; try `@planar` instead"))
363
- TC = eltype(C)
+ TC = scalartype(C)
364
365
# 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)
+ copyA = !(TO.isblascontractable(A, pA) && scalartype(A) === TC)
+ copyB = !(TO.isblascontractable(B, pB) && scalartype(B) === TC)
368
369
if bstyle isa Fermionic && any(isdual ∘ Base.Fix1(space, B), pB[1])
370
# twist smallest object if neither or both already have to be permuted
0 commit comments