Calculates the maximum of a tensor.
The tensor
Optional
An axis less than the rank, removed from the result, while omitting it reduces all entries to a number
const result = Chalkboard.tens.max([[1, 2, 3], [4, 5, 6]], 1); // Returns [3, 6] Copy
const result = Chalkboard.tens.max([[1, 2, 3], [4, 5, 6]], 1); // Returns [3, 6]
Calculates the maximum of a tensor.