RealMatrix.diagonal constructor
Creates a new N x M
matrix where rows
is N
and columns
is M
. The
matrix is filled with diagonalValue
in the main diagonal and zeroes
otherwise.
A MatrixException object is thrown if rows
or columns
is set to 0.
Implementation
RealMatrix.diagonal({
required super.rows,
required super.columns,
required super.diagonalValue,
}) : super.diagonal(
defaultValue: 0,
);