Trait alga::linear::SquareMatrixMut

source ·
pub trait SquareMatrixMut: SquareMatrix + MatrixMut<Row = <Self as SquareMatrix>::Vector, Column = <Self as SquareMatrix>::Vector, Transpose = Self> {
    // Required methods
    fn from_diagonal(diag: &Self::Vector) -> Self;
    fn set_diagonal_mut(&mut self, diag: &Self::Vector);

    // Provided method
    fn set_diagonal(&self, diag: &Self::Vector) -> Self { ... }
}
Expand description

The monoid of all mutable square matrices that are stable under modification of its diagonal.

Required Methods§

source

fn from_diagonal(diag: &Self::Vector) -> Self

Constructs a new diagonal matrix.

source

fn set_diagonal_mut(&mut self, diag: &Self::Vector)

In-place sets the matrix diagonal.

Provided Methods§

source

fn set_diagonal(&self, diag: &Self::Vector) -> Self

Sets the matrix diagonal.

Object Safety§

This trait is not object safe.

Implementors§