Initializes a matrix filled with one number.
The number to fill the elements with
The number of rows or (if the cols parameter is blank) the number of rows or columns (the size)
Optional
The number of columns
const result = Chalkboard.matr.fill(7, 2, 3); // Returns a 2-by-3 matrix filled with 7 Copy
const result = Chalkboard.matr.fill(7, 2, 3); // Returns a 2-by-3 matrix filled with 7
Initializes a matrix filled with one number.