pub struct SparseLU<S: Scalar + Entity> { /* private fields */ }Expand description
Sparse LU factorization for solving Ax = b.
Converts to dense internally (Phase 1 pragmatic approach). A future phase will use native faer sparse solvers for O(nnz) performance.
Implementations§
Source§impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> SparseLU<S>
impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> SparseLU<S>
Sourcepub fn new(matrix: &SparseMatrix<S>) -> Result<Self, LinalgError>
pub fn new(matrix: &SparseMatrix<S>) -> Result<Self, LinalgError>
Factor the sparse matrix (converts to dense internally).
Auto Trait Implementations§
impl<S> Freeze for SparseLU<S>
impl<S> RefUnwindSafe for SparseLU<S>where
<<S as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<S as Entity>::Unit>>: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for SparseLU<S>
impl<S> Sync for SparseLU<S>
impl<S> Unpin for SparseLU<S>where
<<S as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<S as Entity>::Unit>>: Unpin,
S: Unpin,
impl<S> UnsafeUnpin for SparseLU<S>
impl<S> UnwindSafe for SparseLU<S>where
<<S as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<S as Entity>::Unit>>: UnwindSafe,
S: 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