Converts a tensor to a vector.
The tensor
The dimension of the vector, which can be 2, 3, or 4
Optional
The index to start from
const result = Chalkboard.tens.toVector([[3, 4], [5, 12]], 2, 1); // Returns the second two-dimensional vector Copy
const result = Chalkboard.tens.toVector([[3, 4], [5, 12]], 2, 1); // Returns the second two-dimensional vector
Converts a tensor to a vector.