Trait linfa_linalg::svd::SvdSort
source · pub trait SvdSort: Sized {
// Required method
fn sort_svd(self, order: Order) -> Self;
// Provided methods
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§
sourcefn sort_svd_asc(self) -> Self
fn sort_svd_asc(self) -> Self
Sort SVD decomposition by the singular values in ascending order
sourcefn sort_svd_desc(self) -> Self
fn sort_svd_desc(self) -> Self
Sort SVD decomposition by the singular values in descending order
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<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