Calculates the transpose of a tensor by reversing the order of its axes, so that the entry at index (i, j, ..., k) moves to (k, ..., j, i).
The tensor
const result = Chalkboard.tens.transpose([[1, 2, 3], [4, 5, 6]]); // Returns [[1, 4], [2, 5], [3, 6]] Copy
const result = Chalkboard.tens.transpose([[1, 2, 3], [4, 5, 6]]); // Returns [[1, 4], [2, 5], [3, 6]]
Calculates the transpose of a tensor by reversing the order of its axes, so that the entry at index (i, j, ..., k) moves to (k, ..., j, i).