Struct na::FullPivLU [−][src]
pub struct FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>, { /* fields omitted */ }
LU decomposition with full row and column pivoting.
Implementations
impl<N, R, C> FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
[src]
impl<N, R, C> FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
[src]pub fn new(
matrix: Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>
) -> FullPivLU<N, R, C>
[src]
matrix: Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>
) -> FullPivLU<N, R, C>
Computes the LU decomposition with full pivoting of matrix
.
This effectively computes P, L, U, Q
such that P * matrix * Q = LU
.
pub fn l(
&self
) -> Matrix<N, R, <R as DimMin<C>>::Output, <DefaultAllocator as Allocator<N, R, <R as DimMin<C>>::Output>>::Buffer> where
DefaultAllocator: Allocator<N, R, <R as DimMin<C>>::Output>,
[src]
&self
) -> Matrix<N, R, <R as DimMin<C>>::Output, <DefaultAllocator as Allocator<N, R, <R as DimMin<C>>::Output>>::Buffer> where
DefaultAllocator: Allocator<N, R, <R as DimMin<C>>::Output>,
The lower triangular matrix of this decomposition.
pub fn u(
&self
) -> Matrix<N, <R as DimMin<C>>::Output, C, <DefaultAllocator as Allocator<N, <R as DimMin<C>>::Output, C>>::Buffer> where
DefaultAllocator: Allocator<N, <R as DimMin<C>>::Output, C>,
[src]
&self
) -> Matrix<N, <R as DimMin<C>>::Output, C, <DefaultAllocator as Allocator<N, <R as DimMin<C>>::Output, C>>::Buffer> where
DefaultAllocator: Allocator<N, <R as DimMin<C>>::Output, C>,
The upper triangular matrix of this decomposition.
pub fn p(&self) -> &PermutationSequence<<R as DimMin<C>>::Output>
[src]
The row permutations of this decomposition.
pub fn q(&self) -> &PermutationSequence<<R as DimMin<C>>::Output>
[src]
The column permutations of this decomposition.
pub fn unpack(
self
) -> (PermutationSequence<<R as DimMin<C>>::Output>, Matrix<N, R, <R as DimMin<C>>::Output, <DefaultAllocator as Allocator<N, R, <R as DimMin<C>>::Output>>::Buffer>, Matrix<N, <R as DimMin<C>>::Output, C, <DefaultAllocator as Allocator<N, <R as DimMin<C>>::Output, C>>::Buffer>, PermutationSequence<<R as DimMin<C>>::Output>) where
DefaultAllocator: Allocator<N, R, <R as DimMin<C>>::Output>,
DefaultAllocator: Allocator<N, <R as DimMin<C>>::Output, C>,
[src]
self
) -> (PermutationSequence<<R as DimMin<C>>::Output>, Matrix<N, R, <R as DimMin<C>>::Output, <DefaultAllocator as Allocator<N, R, <R as DimMin<C>>::Output>>::Buffer>, Matrix<N, <R as DimMin<C>>::Output, C, <DefaultAllocator as Allocator<N, <R as DimMin<C>>::Output, C>>::Buffer>, PermutationSequence<<R as DimMin<C>>::Output>) where
DefaultAllocator: Allocator<N, R, <R as DimMin<C>>::Output>,
DefaultAllocator: Allocator<N, <R as DimMin<C>>::Output, C>,
The two matrices of this decomposition and the row and column permutations: (P, L, U, Q)
.
impl<N, D> FullPivLU<N, D, D> where
D: DimMin<D, Output = D>,
N: ComplexField,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<(usize, usize), D, U1>,
[src]
impl<N, D> FullPivLU<N, D, D> where
D: DimMin<D, Output = D>,
N: ComplexField,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<(usize, usize), D, U1>,
[src]pub fn solve<R2, C2, S2>(
&self,
b: &Matrix<N, R2, C2, S2>
) -> Option<Matrix<N, R2, C2, <DefaultAllocator as Allocator<N, R2, C2>>::Buffer>> where
S2: Storage<N, R2, C2>,
R2: Dim,
C2: Dim,
ShapeConstraint: SameNumberOfRows<R2, D>,
DefaultAllocator: Allocator<N, R2, C2>,
[src]
&self,
b: &Matrix<N, R2, C2, S2>
) -> Option<Matrix<N, R2, C2, <DefaultAllocator as Allocator<N, R2, C2>>::Buffer>> where
S2: Storage<N, R2, C2>,
R2: Dim,
C2: Dim,
ShapeConstraint: SameNumberOfRows<R2, D>,
DefaultAllocator: Allocator<N, R2, C2>,
Solves the linear system self * x = b
, where x
is the unknown to be determined.
Returns None
if the decomposed matrix is not invertible.
pub fn solve_mut<R2, C2, S2>(&self, b: &mut Matrix<N, R2, C2, S2>) -> bool where
S2: StorageMut<N, R2, C2>,
R2: Dim,
C2: Dim,
ShapeConstraint: SameNumberOfRows<R2, D>,
[src]
S2: StorageMut<N, R2, C2>,
R2: Dim,
C2: Dim,
ShapeConstraint: SameNumberOfRows<R2, D>,
Solves the linear system self * x = b
, where x
is the unknown to be determined.
If the decomposed matrix is not invertible, this returns false
and its input b
may
be overwritten with garbage.
pub fn try_inverse(
&self
) -> Option<Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>>
[src]
&self
) -> Option<Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>>
Computes the inverse of the decomposed matrix.
Returns None
if the decomposed matrix is not invertible.
pub fn is_invertible(&self) -> bool
[src]
Indicates if the decomposed matrix is invertible.
pub fn determinant(&self) -> N
[src]
Computes the determinant of the decomposed matrix.
Trait Implementations
impl<N, R, C> Clone for FullPivLU<N, R, C> where
C: Clone + Dim,
N: Clone + ComplexField,
R: Clone + DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
[src]
impl<N, R, C> Clone for FullPivLU<N, R, C> where
C: Clone + Dim,
N: Clone + ComplexField,
R: Clone + DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
[src]impl<N, R, C> Debug for FullPivLU<N, R, C> where
C: Debug + Dim,
N: Debug + ComplexField,
R: Debug + DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
[src]
impl<N, R, C> Debug for FullPivLU<N, R, C> where
C: Debug + Dim,
N: Debug + ComplexField,
R: Debug + DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
[src]impl<'de, N, R, C> Deserialize<'de> for FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>: Deserialize<'de>,
PermutationSequence<<R as DimMin<C>>::Output>: Deserialize<'de>,
[src]
impl<'de, N, R, C> Deserialize<'de> for FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>: Deserialize<'de>,
PermutationSequence<<R as DimMin<C>>::Output>: Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FullPivLU<N, R, C>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<FullPivLU<N, R, C>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<N, R, C> Serialize for FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>: Serialize,
PermutationSequence<<R as DimMin<C>>::Output>: Serialize,
[src]
impl<N, R, C> Serialize for FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>: Serialize,
PermutationSequence<<R as DimMin<C>>::Output>: Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<N, R, C> Copy for FullPivLU<N, R, C> where
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>: Copy,
PermutationSequence<<R as DimMin<C>>::Output>: Copy,
[src]
C: Dim,
N: ComplexField,
R: DimMin<C>,
DefaultAllocator: Allocator<N, R, C>,
DefaultAllocator: Allocator<(usize, usize), <R as DimMin<C>>::Output, U1>,
Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer>: Copy,
PermutationSequence<<R as DimMin<C>>::Output>: Copy,
Auto Trait Implementations
impl<N, R, C> !RefUnwindSafe for FullPivLU<N, R, C>
impl<N, R, C> !Send for FullPivLU<N, R, C>
impl<N, R, C> !Sync for FullPivLU<N, R, C>
impl<N, R, C> !Unpin for FullPivLU<N, R, C>
impl<N, R, C> !UnwindSafe for FullPivLU<N, R, C>
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]