Struct extendr_api::prelude::sparse::solvers::FullPivLu
pub struct FullPivLu<E>where
E: Entity,{
factors: Mat<E>,
row_perm: Vec<usize>,
row_perm_inv: Vec<usize>,
col_perm: Vec<usize>,
col_perm_inv: Vec<usize>,
n_transpositions: usize,
}
Expand description
LU decomposition with full pivoting.
Fields§
§factors: Mat<E>
§row_perm: Vec<usize>
§row_perm_inv: Vec<usize>
§col_perm: Vec<usize>
§col_perm_inv: Vec<usize>
§n_transpositions: usize
Implementations§
§impl<E> FullPivLu<E>where
E: ComplexField,
impl<E> FullPivLu<E>where
E: ComplexField,
pub fn new<ViewE>(matrix: MatRef<'_, ViewE>) -> FullPivLu<E>where
ViewE: Conjugate<Canonical = E>,
pub fn new<ViewE>(matrix: MatRef<'_, ViewE>) -> FullPivLu<E>where
ViewE: Conjugate<Canonical = E>,
Returns the LU decomposition of the input matrix with row and column pivoting.
The factorization is such that $PAQ^\top = LU$, where $L$ is lower triangular, $U$ is unit upper triangular, and $P$ is the permutation arising from row pivoting and $Q$ is the permutation due to column pivoting.
pub fn row_permutation(&self) -> PermRef<'_, usize>
pub fn row_permutation(&self) -> PermRef<'_, usize>
Returns the row permutation due to pivoting.
pub fn col_permutation(&self) -> PermRef<'_, usize>
pub fn col_permutation(&self) -> PermRef<'_, usize>
Returns the column permutation due to pivoting.
pub fn transposition_count(&self) -> usize
pub fn transposition_count(&self) -> usize
Returns the number of transpositions that constitute the two permutations.
Trait Implementations§
§impl<E> SolverCore<E> for FullPivLu<E>where
E: ComplexField,
impl<E> SolverCore<E> for FullPivLu<E>where
E: ComplexField,
§impl<E> SpSolverCore<E> for FullPivLu<E>where
E: ComplexField,
impl<E> SpSolverCore<E> for FullPivLu<E>where
E: ComplexField,
Auto Trait Implementations§
impl<E> Freeze for FullPivLu<E>
impl<E> RefUnwindSafe for FullPivLu<E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<E as Entity>::Unit>>: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for FullPivLu<E>
impl<E> Sync for FullPivLu<E>
impl<E> Unpin for FullPivLu<E>
impl<E> UnwindSafe for FullPivLu<E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<E as Entity>::Unit>>: UnwindSafe,
E: 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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<E, Dec> SpSolver<E> for Dec
impl<E, Dec> SpSolver<E> for Dec
§fn solve_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
self * X = rhs
, and stores the result in rhs
.§fn solve_conj_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_conj_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
conjugate(self) * X = rhs
, and stores the result in rhs
.§fn solve_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
transpose(self) * X = rhs
, and stores the result in rhs
.§fn solve_conj_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_conj_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
adjoint(self) * X = rhs
, and stores the result in rhs
.§fn solve<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
fn solve<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
Solves the equation
self * X = rhs
, and returns the result.§fn solve_conj<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
fn solve_conj<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
Solves the equation
conjugate(self) * X = rhs
, and returns the result.§fn solve_transpose<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
fn solve_transpose<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
Solves the equation
transpose(self) * X = rhs
, and returns the result.