Trait Eig

Source
pub trait Eig: Matrix {
    type Output;

    // Required method
    fn eig(&self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn eig(&self) -> Self::Output

Returns an approximation of the eigenvalues of a matrix

eig(A)

§Examples
let a = [
    [1.0, 2.0],
    [3.0, 4.0]
];
let eig_a = eig(a);

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<F: Float, const L: usize, const H: usize> Eig for [[Complex<F>; L]; H]
where [[Complex<F>; L]; H]: QRHouseholder, <[[Complex<F>; L]; H] as QRHouseholder>::OutputR: Diag + MMul<<[[Complex<F>; L]; H] as QRHouseholder>::OutputQ, Output = [[Complex<F>; L]; H]>,

Source§

type Output = <<[[Complex<F>; L]; H] as QRHouseholder>::OutputR as Diag>::Output

Source§

fn eig(&self) -> Self::Output

Source§

impl<const L: usize, const H: usize> Eig for [[f32; L]; H]
where Self: Matrix, [[Complex<f32>; L]; H]: Eig,

Source§

type Output = <[[Complex<f32>; L]; H] as Eig>::Output

Source§

fn eig(&self) -> Self::Output

Source§

impl<const L: usize, const H: usize> Eig for [[f64; L]; H]
where Self: Matrix, [[Complex<f64>; L]; H]: Eig,

Source§

type Output = <[[Complex<f64>; L]; H] as Eig>::Output

Source§

fn eig(&self) -> Self::Output

Implementors§