pub struct SparseSolver { /* private fields */ }Expand description
Legacy SparseSolver for backward compatibility.
Implementations§
Source§impl SparseSolver
impl SparseSolver
Sourcepub fn factor(kind: SolverKind, matrix: &SparseMatrix) -> Result<Self, String>
pub fn factor(kind: SolverKind, matrix: &SparseMatrix) -> Result<Self, String>
Factor matrix with the selected backend.
Sourcepub fn solve(&self, b: &[f64]) -> Result<Vec<f64>, SolverError>
pub fn solve(&self, b: &[f64]) -> Result<Vec<f64>, SolverError>
Direct solve (LU / LDLT). Returns error if solver fails.
Sourcepub fn solve_iterative(
kind: SolverKind,
matrix: &SparseMatrix,
b: &[f64],
max_iter: usize,
tol: f64,
) -> Result<Vec<f64>, SolverError>
pub fn solve_iterative( kind: SolverKind, matrix: &SparseMatrix, b: &[f64], max_iter: usize, tol: f64, ) -> Result<Vec<f64>, SolverError>
Iterative solve used for PCG/ICCG kinds.
Auto Trait Implementations§
impl Freeze for SparseSolver
impl RefUnwindSafe for SparseSolver
impl Send for SparseSolver
impl Sync for SparseSolver
impl Unpin for SparseSolver
impl UnsafeUnpin for SparseSolver
impl UnwindSafe for SparseSolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more