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 all zeroes and the diagonal is filled with ones.
Implementation
RealMatrix({
required int rows,
required int columns,
bool identity = false,
}) : super(
rows: rows,
columns: columns,
identity: identity,
defaultValue: 0,
identityOneValue: 1,
);