Skip to content

Commit ed8d3bf

Browse files
committed
Fixed un-initialization related bug in mul! for block matrices
1 parent ee5bf7e commit ed8d3bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Arrays/BlockArraysCoo.jl

+2
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,12 @@ function Base.:*(a::BlockMatrixCoo,b::BlockMatrixCoo)
318318
end
319319

320320
function LinearAlgebra.mul!(c::BlockVectorCoo,a::BlockMatrixCoo,b::BlockVectorCoo)
321+
fill!(c,zero(eltype(c)))
321322
mul!(c,a,b,1,0)
322323
end
323324

324325
function LinearAlgebra.mul!(c::BlockMatrixCoo,a::BlockMatrixCoo,b::BlockMatrixCoo)
326+
fill!(c,zero(eltype(c)))
325327
mul!(c,a,b,1,0)
326328
end
327329

0 commit comments

Comments
 (0)