ndarray_linalg::tridiagonal

Trait ExtractTridiagonal

source
pub trait ExtractTridiagonal<A: Scalar> {
    // Required method
    fn extract_tridiagonal(&self) -> Result<Tridiagonal<A>>;
}
Expand description

An interface for making a Tridiagonal struct.

Required Methods§

source

fn extract_tridiagonal(&self) -> Result<Tridiagonal<A>>

Extract tridiagonal elements and layout of the raw matrix.

If the raw matrix has some non-tridiagonal elements, they will be ignored.

The shape of raw matrix should be equal to or larger than (2, 2).

Implementations on Foreign Types§

source§

impl<A, S> ExtractTridiagonal<A> for ArrayBase<S, Ix2>
where A: Scalar + Lapack, S: Data<Elem = A>,

Implementors§