You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to know what are the steps needed to make this possible.
How can I help in making this happening?
In practice, I want to use this approach to solving non-symmetric systems, just like in the MWE below:
using SparseArrays, LinearAlgebra
letusing SparseArrays, LinearAlgebra
let# Non-symmetric matrix
M =sparse([2100; 1.531.50; 0131; 0012])
# RHS
b =ones(4)
# Direct solve (likely LU)
x = M\b
# Alternative
M_fact =cholesky(0.5*(M+M'))
# Naive defect correction / would be better to use gmres!(...)
x =zeros(4)
r =zeros(4)
for iter=1:20
r .= M*x - b
x .-= M_fact\r
@shownorm(r)
endendend
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.Factors
manually) is presented in that post but is there now a better approach to overcomes this?thanks!
The text was updated successfully, but these errors were encountered: