Skip to content

Commit b2f3f69

Browse files
lkdvosclaude
andcommitted
Make norm, ==, tr sparse test independent of an empty sprand draw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1d38cdf commit b2f3f69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎test/abstracttensor/sparseblocktensor.jl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ end
166166
W = V1 ⊗ V2 ← V1 ⊗ V2
167167
for T in (Float64, ComplexF64)
168168
t = sprand(T, W, 0.5)
169+
t[1] = randn(T, space(t[1]))
169170
t′ = convert(TensorMap, t)
170171
for p in (1, 2, 3, Inf)
171172
@test norm(t, p) ≈ norm(t′, p)

0 commit comments

Comments
 (0)