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

fn from_diagonal(diagonal: &V) -> Self

Creates a new matrix with the given diagonal.

fn diagonal(&self) -> V

The diagonal of this matrix.

Implementors