Is there a numpy function that gives for a given numpy array its maximum - minimum value, i.e. numpy.max(a) - numpy.min(a) ?
e.g.
numpy.xxx([4,3,2,
Indeed there is such a function -- it's called numpy.ptp() for "peak to peak".