Is there a numpy function that gives the maximum value for the given numpy array - the minimum value, i.e. numpy.max (a) - numpy.min (a)?
eg.
numpy.xxx([4,3,2, 6] = 4 since max = 6, min = 2, 6 - 4 = 2)
Reason: increasing performance with max and min will double the iteration of the array (which in my case is 7.5 million or more numbers).
python max numpy min
Michel Keijzers Feb 16 2018-12-12T00: 00Z
source share