Trait linfa_linalg::svd::SVD
source · [−]pub trait SVD {
type U;
type Vt;
type Sigma;
fn svd(
&self,
calc_u: bool,
calc_vt: bool
) -> Result<(Option<Self::U>, Self::Sigma, Option<Self::Vt>)>;
}
Expand description
Compact singular-value decomposition of a non-empty matrix
Required Associated Types
Required Methods
Calculates the compact SVD of a matrix, consisting of a square non-negative diagonal
matrix S
and rectangular semi-orthogonal matrices U
and Vt
, such that U * S * Vt
yields the original matrix. Only the diagonal elements of S
is returned.