fill method

void fill(
  1. double num
)

Fill the matrix with a specific number

  • num The number to fill the matrix with
  • Example
Matrix matrix = Matrix(2, 2);
matrix.fill(1);

Implementation

void fill(double num) {
  _generateValues<double>(() => num);
}