Returns a matrix with a row or column added (pushed in).
The matrix
The index of the row or column to push
The axis to push to, which is 0 for the rows or 1 for the columns
The elements to push
const result = Chalkboard.matr.push([[1, 2], [3, 4]], 1, 0, [5, 6]); // Inserts a row at index 1 Copy
const result = Chalkboard.matr.push([[1, 2], [3, 4]], 1, 0, [5, 6]); // Inserts a row at index 1
Returns a matrix with a row or column added (pushed in).