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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<A: NdFloat> SvdSort for (Option<Array2<A>>, Array1<A>, Option<Array2<A>>)
Implemented on the output of the SVD
traits
impl<A: NdFloat> SvdSort for (Option<Array2<A>>, Array1<A>, Option<Array2<A>>)
Implemented on the output of the SVD
traits