Dear all,
I have recently tried to use Cholesky factors (of simpler problem) as a preconditionner to a Krylov solve, e.g.:
PC_fact = cholesky(PC)
gmres!(x, A, b; Pl=PC_fact)
This fails as ldiv! is not defined for CHOLMOD.Factors:
ERROR: MethodError: no method matching ldiv!(::SparseArrays.CHOLMOD.Factor{Float64},
The issue is discussed [there] in more details (https://discourse.julialang.org/t/defining-a-preconditionner-for-iterativesolvers/86977). A temporary solution (defining ldiv! for CHOLMOD.Factors manually) is presented in that post but is there now a better approach to overcomes this?
thanks!
Dear all,
I have recently tried to use Cholesky factors (of simpler problem) as a preconditionner to a Krylov solve, e.g.:
This fails as
ldiv!is not defined forCHOLMOD.Factors:The issue is discussed [there] in more details (https://discourse.julialang.org/t/defining-a-preconditionner-for-iterativesolvers/86977). A temporary solution (defining
ldiv!forCHOLMOD.Factorsmanually) is presented in that post but is there now a better approach to overcomes this?thanks!