Converts a matrix to a tensor.
The matrix
The number of rows, columns, tubes, etc. of the tensor represented as a single array or a sequence of arguments
const result = Chalkboard.matr.toTensor([[1, 2], [3, 4]], 2, 2); // Returns an equivalent rank-2 tensor Copy
const result = Chalkboard.matr.toTensor([[1, 2], [3, 4]], 2, 2); // Returns an equivalent rank-2 tensor
Converts a matrix to a tensor.