Diagonal (Jacobi) preconditioner application
M_inv.Rd
Divides by an approximation to the diagonal of the system, which makes the iterative solver converge faster.
Arguments
- v
Numeric vector to precondition (length \(m\)).
- kdiag_full
Vector \(\mathrm{diag}(K)\) of length \(N\) (typically from `as.vector(kronecker(diag(space), diag(time)))`).
- obs_idx
Integer indices of observed entries in the full vector.
- noise_var
Scalar or length-\(m\) numeric nugget to add to the diagonal.