ExtractTridiagonal

Trait ExtractTridiagonal 

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

An interface for making a Tridiagonal struct.

Required Methods§

Source

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

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).

Implementors§

Source§

impl<A, S> ExtractTridiagonal<A> for ArrayBase<S, Dim<[usize; 2]>>
where A: Scalar + Lapack, S: Data<Elem = A>,