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