pub struct SparseLuSolver<F> { /* private fields */ }Expand description
Sparse LU solver with partial pivoting.
Implementations§
Source§impl<F: Float + NumAssign + Sum + SparseElement + Debug + 'static> SparseLuSolver<F>
impl<F: Float + NumAssign + Sum + SparseElement + Debug + 'static> SparseLuSolver<F>
Sourcepub fn factorization(&self) -> Option<&SparseLuResult<F>>
pub fn factorization(&self) -> Option<&SparseLuResult<F>>
Access the factorization result (if available).
Trait Implementations§
Source§impl<F: Float + NumAssign + Sum + SparseElement + Debug + 'static> Default for SparseLuSolver<F>
impl<F: Float + NumAssign + Sum + SparseElement + Debug + 'static> Default for SparseLuSolver<F>
Source§impl<F: Float + NumAssign + Sum + SparseElement + Debug + 'static> SparseSolver<F> for SparseLuSolver<F>
impl<F: Float + NumAssign + Sum + SparseElement + Debug + 'static> SparseSolver<F> for SparseLuSolver<F>
Source§fn factorize(&mut self, matrix: &CsrMatrix<F>) -> SparseResult<()>
fn factorize(&mut self, matrix: &CsrMatrix<F>) -> SparseResult<()>
Compute the factorization of the given matrix.
Source§fn solve(&self, b: &[F]) -> SparseResult<Vec<F>>
fn solve(&self, b: &[F]) -> SparseResult<Vec<F>>
Solve
A x = b using the stored factorization.Source§fn solve_multi(&self, b_columns: &[Vec<F>]) -> SparseResult<Vec<Vec<F>>>
fn solve_multi(&self, b_columns: &[Vec<F>]) -> SparseResult<Vec<Vec<F>>>
Solve
A X = B for multiple right-hand sides (columns of B).Auto Trait Implementations§
impl<F> Freeze for SparseLuSolver<F>
impl<F> RefUnwindSafe for SparseLuSolver<F>where
F: RefUnwindSafe,
impl<F> Send for SparseLuSolver<F>where
F: Send,
impl<F> Sync for SparseLuSolver<F>where
F: Sync,
impl<F> Unpin for SparseLuSolver<F>where
F: Unpin,
impl<F> UnsafeUnpin for SparseLuSolver<F>
impl<F> UnwindSafe for SparseLuSolver<F>where
F: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more