Trait linfa_linalg::svd::SVDInto
source · pub trait SVDInto {
type U;
type Vt;
type Sigma;
// Required method
fn svd_into(
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§
sourcefn svd_into(
self,
calc_u: bool,
calc_vt: bool,
) -> Result<(Option<Self::U>, Self::Sigma, Option<Self::Vt>)>
fn svd_into( self, calc_u: bool, calc_vt: bool, ) -> Result<(Option<Self::U>, Self::Sigma, Option<Self::Vt>)>
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.