Skip to content

Commit b2aa8bc

Browse files
authored
Make testsuite compatible with sparse arrays (#70)
* make testsuite compatible with sparse arrays * Revert "make testsuite compatible with sparse arrays" This reverts commit f80f6b8. * remove views in orthogonality test
1 parent 3972272 commit b2aa8bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/sectors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ end
156156
cgcs = map(c -> fusiontensor(a, b, c), cs)
157157
for (c, cgc) in zip(cs, cgcs), (c′, cgc′) in zip(cs, cgcs)
158158
for μ in 1:Nsymbol(a, b, c), ν in 1:Nsymbol(a, b, c′)
159-
@tensor overlap[mc mc'] := conj(view(cgc, :, :, :, μ)[ma mb mc]) *
160-
view(cgc′, :, :, :, ν)[ma mb mc']
159+
@tensor overlap[mc mc'] := conj(cgc[:, :, :, μ][ma mb mc]) *
160+
cgc′[:, :, :, ν][ma mb mc']
161161
if μ == ν && c == c′
162162
@test isapprox(overlap, LinearAlgebra.I; atol = 1.0e-12)
163163
else

0 commit comments

Comments
 (0)