Calculates the rank of a tensor.
The tensor
const result = Chalkboard.tens.rank([[[1, 2]], [[3, 4]]]); // Returns 3 Copy
const result = Chalkboard.tens.rank([[[1, 2]], [[3, 4]]]); // Returns 3
Calculates the rank of a tensor.