Calculates the scalar multiplication of a matrix.
The matrix
The number
const result = Chalkboard.matr.scl([[1, 2], [3, 4]], 2); // Returns [[2, 4], [6, 8]] Copy
const result = Chalkboard.matr.scl([[1, 2], [3, 4]], 2); // Returns [[2, 4], [6, 8]]
Calculates the scalar multiplication of a matrix.