Calculates the transpose of a matrix.
The matrix
const result = Chalkboard.matr.transpose([[1, 2, 3], [4, 5, 6]]); // Returns [[1, 4], [2, 5], [3, 6]] Copy
const result = Chalkboard.matr.transpose([[1, 2, 3], [4, 5, 6]]); // Returns [[1, 4], [2, 5], [3, 6]]
Calculates the transpose of a matrix.