@@ -225,19 +225,28 @@ function SciMLBase.solve!(cache::LinearSolve.LinearCache, alg::KLUFactorization;
225
225
end
226
226
end
227
227
228
- const PREALLOCATED_CHOLMOD = cholesky (SparseMatrixCSC ( 0 , 0 , [ 1 ], Int[], Float64[ ]))
228
+ const PREALLOCATED_CHOLMOD = cholesky (sparse ([ 1.0 ]))
229
229
230
230
function LinearSolve. init_cacheval (alg:: CHOLMODFactorization ,
231
- A:: Symmetric{T, SparseMatrixCSC{T, Int}} , b, u,
231
+ A:: Union{SparseMatrixCSC{T, Int}, Symmetric{T, SparseMatrixCSC{T, Int} }} , b, u,
232
232
Pl, Pr,
233
233
maxiters:: Int , abstol, reltol,
234
234
verbose:: Bool , assumptions:: OperatorAssumptions ) where {T < :
235
- BLASELTYPES }
235
+ Float64 }
236
236
PREALLOCATED_CHOLMOD
237
237
end
238
238
239
239
function LinearSolve. init_cacheval (alg:: CHOLMODFactorization ,
240
- A:: SparseMatrixCSC{T, Int} , b, u,
240
+ A:: Union{SparseMatrixCSC{T, Int}, Symmetric{T, SparseMatrixCSC{T, Int}}} , b, u,
241
+ Pl, Pr,
242
+ maxiters:: Int , abstol, reltol,
243
+ verbose:: Bool , assumptions:: OperatorAssumptions ) where {T < :
244
+ BLASELTYPES}
245
+ cholesky (sparse ([one (T)]))
246
+ end
247
+
248
+ function LinearSolve. init_cacheval (alg:: CHOLMODFactorization ,
249
+ A:: AbstractArray , b, u,
241
250
Pl, Pr,
242
251
maxiters:: Int , abstol, reltol,
243
252
verbose:: Bool , assumptions:: OperatorAssumptions ) where {T < :
0 commit comments