Skip to content

Commit 291b193

Browse files
committed
re-establish all convert calls
1 parent 25559fe commit 291b193

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/factorization.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ end
316316
function init_cacheval(alg::KLUFactorization, A, b, u, Pl, Pr, maxiters::Int, abstol,
317317
reltol,
318318
verbose::Bool, assumptions::OperatorAssumptions)
319+
A = convert(AbstractMatrix, A)
319320
return KLU.KLUFactorization(SparseMatrixCSC(size(A)..., getcolptr(A), rowvals(A),
320321
nonzeros(A)))
321322
end
@@ -519,6 +520,7 @@ end
519520
function init_cacheval(::SparspakFactorization, A, b, u, Pl, Pr, maxiters::Int, abstol,
520521
reltol,
521522
verbose::Bool, assumptions::OperatorAssumptions)
523+
A = convert(AbstractMatrix, A)
522524
return sparspaklu(SparseMatrixCSC(size(A)..., getcolptr(A), rowvals(A), nonzeros(A)),
523525
factorize = false)
524526
end

0 commit comments

Comments
 (0)