fill function
Create a matrix with a num
numThe number to fill the matrix withrowThe number of rows in the matrixcolThe 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;
}