We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7840264 commit 6702176Copy full SHA for 6702176
src/blocksparsearrayinterface/getunstoredblock.jl
@@ -32,7 +32,7 @@ function (f::GetUnstoredBlock)(
32
return length(f.axes[d][Block(I[d])])
33
end
34
if I[1] == I[2]
35
- diag = similar(V, b_size[1])
+ diag = zero!(similar(V, b_size[1]))
36
return LinearAlgebra.Diagonal{T,V}(diag)
37
else
38
return zeros(T, b_size...)
0 commit comments