pub struct KluSolver { /* private fields */ }Expand description
SuiteSparse KLU factorization for a fixed square CSC sparsity pattern.
Implementations§
Source§impl KluSolver
impl KluSolver
Sourcepub fn new(
dim: usize,
col_ptrs: &[usize],
row_indices: &[usize],
) -> SparseResult<Self>
pub fn new( dim: usize, col_ptrs: &[usize], row_indices: &[usize], ) -> SparseResult<Self>
Analyze a square CSC sparsity pattern.
Sourcepub fn from_csc<T>(matrix: &CscMatrix<T>) -> SparseResult<Self>
pub fn from_csc<T>(matrix: &CscMatrix<T>) -> SparseResult<Self>
Analyze the sparsity pattern from a validated CSC matrix.
pub fn factor(&mut self, values: &[f64]) -> SparseResult<()>
pub fn refactor(&mut self, values: &[f64]) -> SparseResult<()>
pub fn solve(&mut self, rhs: &mut [f64]) -> SparseResult<()>
pub fn solve_transpose(&mut self, rhs: &mut [f64]) -> SparseResult<()>
pub fn rcond(&self) -> f64
Sourcepub fn solve_many(&mut self, rhs: &mut [f64], nrhs: usize) -> SparseResult<()>
pub fn solve_many(&mut self, rhs: &mut [f64], nrhs: usize) -> SparseResult<()>
Solve AX = B in-place for multiple RHS columns.
rhs must contain dim * nrhs values laid out column-major, so
column j occupies rhs[j * dim .. (j + 1) * dim].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KluSolver
impl RefUnwindSafe for KluSolver
impl !Sync for KluSolver
impl Unpin for KluSolver
impl UnsafeUnpin for KluSolver
impl UnwindSafe for KluSolver
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