title: NumPy: function for simultaneous max() and min()
body: <p><a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.amax.html#numpy.amax" rel="noreferrer">numpy.amax()</a> will find the max value in an array, and <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.amin.html" rel="noreferrer">numpy.amin()</a> does the same for the min value.  If I want to find both max and min, I have to call both functions, which requires passing over the (very big) array twice, which seems slow.</p>
  
  <p>Is there a function in the numpy API that finds both max and min with only a single pass through the data?</p>