Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tensors/tensoroperations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@ function blas_contract!(
bstyle = BraidingStyle(sectortype(C))
bstyle isa SymmetricBraiding ||
throw(SectorMismatch("only tensors with symmetric braiding rules can be contracted; try `@planar` instead"))
TC = eltype(C)
TC = scalartype(C)

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

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