fill function

Matrix fill(
  1. num num,
  2. int row,
  3. int col
)

Create a matrix with a num

  • num The number to fill the matrix with
  • row The number of rows in the matrix
  • col The number of columns in the matrix

Implementation

Matrix fill(num num, int row, int col) {
  Matrix matrix = Matrix(row, col);
  matrix.fill(num.toDouble());
  return matrix;
}