Trait linfa_linalg::eigh::EigSort

source ·
pub trait EigSort: Sized {
    // Required method
    fn sort_eig(self, order: Order) -> Self;

    // Provided methods
    fn sort_eig_asc(self) -> Self { ... }
    fn sort_eig_desc(self) -> Self { ... }
}
Expand description

Sorting of eigendecomposition by the eigenvalues.

§Panic

Will panic if shape or layout of inputs differ from eigen output, or if input contains NaN.

Required Methods§

source

fn sort_eig(self, order: Order) -> Self

Provided Methods§

source

fn sort_eig_asc(self) -> Self

Sort eigendecomposition by the eigenvalues in ascending order

source

fn sort_eig_desc(self) -> Self

Sort eigendecomposition by the eigenvalues in descending order

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A: NdFloat> EigSort for (Array1<A>, Array2<A>)

Implementation on output of Eigh traits

source§

fn sort_eig(self, order: Order) -> Self

source§

impl<A: NdFloat> EigSort for Array1<A>

Implementation on output of EigValsh traits

source§

fn sort_eig(self, order: Order) -> Self

Implementors§