[PYTHON MATRIX-SIG] Last complaints about NumPy 1.0a5

David Ascher da@maigret.cog.brown.edu
Wed, 23 Oct 1996 14:28:17 -0400 (EDT)


> I do see the value in making the seperation a little bit mnore clear in the
> tutorial between core functions and convenience functions.  If you look at
> my own docs you'll see that I went out of my way to make this point.

Will gladly oblige.
 
> > 3) binarysearch() should be called just search(), or find().
> >    The name of a function should not indicate the algorithm
> >    that is uses, however obvious the choice of the algorithm
> >    is.
> 
> Frederick's point that this function name helps to make it clear to people
> that this function requires a sorted array is my original reasoning.  I've
> always been a little bit concerned that this function can be easily misused
> by naive users and there's no efficient way to detect an error if it's used
> on an unsorted array.  So, the very specific name I think is helpful here.

I appreciate the reasoning, but the name seems confusing.  How about 

	searchsorted()

to be even more explicit.

--david 

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================