vm_prec struct
#include <src/features/sparse.c>
Left preconditioner for iterative solvers (CG / BiCGSTAB).
Public variables
-
vm_
ksp_ prec_ t kind - NONE, JACOBI, SSOR, or IC0.
-
const vm_
spmat* A - matrix being preconditioned (not owned)
-
vm_
float_ t* diag - diagonal of A (Jacobi / SSOR / IC0 fallback)
-
vm_
float_ t* tmp - workspace for SSOR / IC0 (length A->n)
-
vm_
ic0 ic - IC(0) factor when kind is IC0.