ComplexMatrix 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
ComplexMatrix({
required int rows,
required int columns,
bool identity = false,
}) : super(
rows: rows,
columns: columns,
identity: identity,
defaultValue: const Complex.zero(),
identityOneValue: const Complex.fromReal(1),
);