Skip to content

Commit

Permalink
Fix accidental refactor with different patterns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wimmerer committed Dec 14, 2021
1 parent aa581c9 commit 2dbb52d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/KLU.jl
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ end

function klu!(K::KLUFactorization{U}, S::SparseMatrixCSC{U}) where {U}
size(K) == size(S) || throw(ArgumentError("Sizes of K and S must match."))
K.colptr == S.colptr && K.rowval == S.rowval || throw(ArgumentError("The pattern of the original matrix must match the pattern of the refactor."))
return klu!(K, S.nzval)
end
#B is the modified argument here. To match with the math it should be (klu, B). But convention is
Expand Down

0 comments on commit 2dbb52d

Please sign in to comment.