[Numpy-discussion] New functions.

Benjamin Root ben.root at ou.edu
Tue May 31 21:31:10 EDT 2011


On Tue, May 31, 2011 at 8:18 PM, Warren Weckesser <
warren.weckesser at enthought.com> wrote:

>
>
> On Tue, May 31, 2011 at 8:08 PM, Charles R Harris <
> charlesr.harris at gmail.com> wrote:
>
>> Hi All,
>>
>> I've been contemplating new functions that could be added to numpy and
>> thought I'd run them by folks to see if there is any interest.
>>
>> 1) Modified sort/argsort functions that return the maximum k values.
>>     This is easy to do with heapsort and almost as easy with mergesort.
>>
>>
>
> While you're at, how about a function that finds both the max and min in
> one pass?  (Mentioned previously in this thread:
> http://mail.scipy.org/pipermail/numpy-discussion/2010-June/051072.html)
>
>
>
+1 from myself and probably just about anybody in matplotlib.  If both the
maxs and mins are searched during the same run through an array, I would
imagine that would result in a noticeable speedup with automatic range
finding.

Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110531/5d5e3f4b/attachment.html>


More information about the NumPy-Discussion mailing list