Skip to content

Commit

Permalink
Fixed un-initialization related bug in mul! for block matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Aug 21, 2020
1 parent ee5bf7e commit ed8d3bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Arrays/BlockArraysCoo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,12 @@ function Base.:*(a::BlockMatrixCoo,b::BlockMatrixCoo)
end

function LinearAlgebra.mul!(c::BlockVectorCoo,a::BlockMatrixCoo,b::BlockVectorCoo)
fill!(c,zero(eltype(c)))
mul!(c,a,b,1,0)
end

function LinearAlgebra.mul!(c::BlockMatrixCoo,a::BlockMatrixCoo,b::BlockMatrixCoo)
fill!(c,zero(eltype(c)))
mul!(c,a,b,1,0)
end

Expand Down

0 comments on commit ed8d3bf

Please sign in to comment.