Skip to main content

Minimum

min(input: Number | any[] | Mat | Tensor) : Number

param input - a number, any JS array 1d or 2d, a Mat or Tensor, where you want to find the minimum value

returns: Number - the number representing the minimum value of the structure given

This function similar to max, finds the minimum 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 smallest element of a set where the elements are real numbers.