Skip to content

Commit d897f44

Browse files
committed
Tweak design
1 parent 11e5543 commit d897f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NDTensors/src/blocksparse/diagblocksparse.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ end
586586
function LinearAlgebra.norm(D::UniformDiagBlockSparseTensor)
587587
normD² = zero(eltype(D))
588588
for b in nzblocks(D)
589-
normD² += sum(abs2, D[b])
589+
normD² += norm(D[b])^2
590590
end
591591
return (abs(normD²))
592592
end

0 commit comments

Comments
 (0)