Maximum
max(input: Number | any[] | Mat | Tensor) : Number
param input
The structure to find the maximum element
returns: Number
- the number representing the maximum value of the structure given
This function similar to min, finds the maximum element in a given structure, whether its a 1d list, 2d matrix, Tensor, Mat or even a number itself (the trivial case). Basically, its finding the largest element of a set where the elements are real numbers.