Trait nalgebra::Diagonal [] [src]

pub trait Diagonal<V> {
    fn from_diagonal(diagonal: &V) -> Self;
    fn diagonal(&self) -> V;
}

Trait to get the diagonal of square matrices.

Required Methods

Creates a new matrix with the given diagonal.

The diagonal of this matrix.

Implementors