pub struct Svd {
pub singular_values: Vec<f64>,
pub u: Vec<f64>,
pub v: Vec<f64>,
}Expand description
Result of a (thin) SVD A = U·Σ·Vᵀ. singular_values (length n, descending) is
the diagonal of Σ; u is row-major m×n with left singular vectors as columns; v
is row-major n×n with right singular vectors as columns.
Reconstruction: A[i][j] = Σ_k u[i][k]·σ_k·v[j][k].
Fields§
§singular_values: Vec<f64>§u: Vec<f64>§v: Vec<f64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Svd
impl RefUnwindSafe for Svd
impl Send for Svd
impl Sync for Svd
impl Unpin for Svd
impl UnsafeUnpin for Svd
impl UnwindSafe for Svd
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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