pub fn gpu_jacobi_preconditioner(mat: &SparseMatrixGpu) -> Vec<f64>Expand description
Build the Jacobi (diagonal) preconditioner for matrix mat.
Returns a vector M⁻¹ where M⁻¹[i] = 1/A[i,i] (or 1 if the diagonal
entry is zero).
pub fn gpu_jacobi_preconditioner(mat: &SparseMatrixGpu) -> Vec<f64>Build the Jacobi (diagonal) preconditioner for matrix mat.
Returns a vector M⁻¹ where M⁻¹[i] = 1/A[i,i] (or 1 if the diagonal
entry is zero).