pub struct Svd<V, R = V> {
pub u: V,
pub s: R,
pub vh: V,
}Expand description
Thin or full singular value decomposition A = U diag(S) Vh.
Field order equals the former tuple order (U, S, Vh).
u: left singular vectorss: singular valuesvh: conjugate transpose of the right singular vectors
§Examples
use tenferro_linalg::Svd;
let r = Svd { u: 1, s: 2.0, vh: 3 };
let Svd { u, s, vh } = r;
assert_eq!((u, s, vh), (1, 2.0, 3));Fields§
§u: VSee the type-level documentation.
s: RSee the type-level documentation.
vh: VSee the type-level documentation.
Trait Implementations§
Auto Trait Implementations§
impl<V, R> Freeze for Svd<V, R>
impl<V, R> RefUnwindSafe for Svd<V, R>where
V: RefUnwindSafe,
R: RefUnwindSafe,
impl<V, R> Send for Svd<V, R>
impl<V, R> Sync for Svd<V, R>
impl<V, R> Unpin for Svd<V, R>
impl<V, R> UnsafeUnpin for Svd<V, R>where
V: UnsafeUnpin,
R: UnsafeUnpin,
impl<V, R> UnwindSafe for Svd<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