RealMatrix constructor
Creates a new N x M
matrix where rows
is N
and columns
is M
. The
matrix is filled with zeroes.
If identity
is set to true
(by default it's false
) then the matrix
is initialized with zeroes and the diagonal is filled with ones.
A MatrixException object is thrown if rows
or columns
is set to 0.
Implementation
RealMatrix({
required super.rows,
required super.columns,
super.identity,
}) : super(
defaultValue: 0,
identityOneValue: 1,
);