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
impl<N: Copy + Clone + Zero> Diagonal<DVector<N>> for DMatrix<N>
impl<N: Copy + Clone + Zero> Diagonal<DVector1<N>> for DMatrix1<N>
impl<N: Copy + Clone + Zero> Diagonal<DVector2<N>> for DMatrix2<N>
impl<N: Copy + Clone + Zero> Diagonal<DVector3<N>> for DMatrix3<N>
impl<N: Copy + Clone + Zero> Diagonal<DVector4<N>> for DMatrix4<N>
impl<N: Copy + Clone + Zero> Diagonal<DVector5<N>> for DMatrix5<N>
impl<N: Copy + Clone + Zero> Diagonal<DVector6<N>> for DMatrix6<N>
impl<N: Copy + Zero> Diagonal<Vector1<N>> for Matrix1<N>
impl<N: Copy + Zero> Diagonal<Vector2<N>> for Matrix2<N>
impl<N: Copy + Zero> Diagonal<Vector3<N>> for Matrix3<N>
impl<N: Copy + Zero> Diagonal<Vector4<N>> for Matrix4<N>
impl<N: Copy + Zero> Diagonal<Vector5<N>> for Matrix5<N>
impl<N: Copy + Zero> Diagonal<Vector6<N>> for Matrix6<N>
impl<N: Copy + Zero> Diagonal<Vector2<N>> for Rotation2<N>
impl<N: Copy + Zero> Diagonal<Vector3<N>> for Rotation3<N>