Trait linfa_linalg::svd::SvdSort
source · [−]pub trait SvdSort: Sized {
fn sort_svd(self, order: Order) -> Self;
fn sort_svd_asc(self) -> Self { ... }
fn sort_svd_desc(self) -> Self { ... }
}
Expand description
Sorting of SVD decomposition by the singular values. Rearranges the columns of U
and rows of
Vt
accordingly.
Panic
Will panic if shape of inputs differs from shape of SVD output, or if input contains NaN.
Required Methods
Provided Methods
fn sort_svd_asc(self) -> Self
fn sort_svd_asc(self) -> Self
Sort SVD decomposition by the singular values in ascending order
fn sort_svd_desc(self) -> Self
fn sort_svd_desc(self) -> Self
Sort SVD decomposition by the singular values in descending order
Implementations on Foreign Types
sourceimpl<A: NdFloat> SvdSort for (Option<Array2<A>>, Array1<A>, Option<Array2<A>>)
impl<A: NdFloat> SvdSort for (Option<Array2<A>>, Array1<A>, Option<Array2<A>>)
Implemented on the output of the SVD
traits