pub struct FullPivLu<V, R = V> {
pub p: V,
pub l: V,
pub u: V,
pub q: V,
pub parity: R,
}Expand description
Full-pivot LU decomposition P A Q = L U.
Field order equals the former tuple order (P, L, U, Q, parity).
p: row permutation MATRIX tensor (not a pivot index vector)l: unit lower-triangular factoru: upper-triangular factorq: column permutation matrix tensorparity: permutation parity
§Examples
use tenferro_linalg::FullPivLu;
let r = FullPivLu { p: 1, l: 2, u: 3, q: 4, parity: 5.0 };
let FullPivLu { p, l, u, q, parity } = r;
assert_eq!((p, l, u, q, parity), (1, 2, 3, 4, 5.0));Fields§
§p: VSee the type-level documentation.
l: VSee the type-level documentation.
u: VSee the type-level documentation.
q: VSee the type-level documentation.
parity: RSee the type-level documentation.
Trait Implementations§
Auto Trait Implementations§
impl<V, R> Freeze for FullPivLu<V, R>
impl<V, R> RefUnwindSafe for FullPivLu<V, R>where
V: RefUnwindSafe,
R: RefUnwindSafe,
impl<V, R> Send for FullPivLu<V, R>
impl<V, R> Sync for FullPivLu<V, R>
impl<V, R> Unpin for FullPivLu<V, R>
impl<V, R> UnsafeUnpin for FullPivLu<V, R>where
V: UnsafeUnpin,
R: UnsafeUnpin,
impl<V, R> UnwindSafe for FullPivLu<V, R>where
V: UnwindSafe,
R: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
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