From d649f5c6e689e2f036b6e010360d54ea5e0f9433 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Tue, 9 Dec 2025 21:11:49 -0500 Subject: [PATCH] replace `eltype` with `scalartype` --- src/tensors/tensoroperations.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tensors/tensoroperations.jl b/src/tensors/tensoroperations.jl index 4a1d627c6..c5ea41809 100644 --- a/src/tensors/tensoroperations.jl +++ b/src/tensors/tensoroperations.jl @@ -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