[Numpy-tickets] [NumPy] #425: Faster clip for scalar clipping values

NumPy numpy-tickets at scipy.net
Sat Jan 20 14:59:49 CST 2007

#425: Faster clip for scalar clipping values
 Reporter:  david cournapeau  |        Owner:  somebody
     Type:  enhancement       |       Status:  new     
 Priority:  normal            |    Milestone:          
Component:  Other             |      Version:  devel   
 Severity:  normal            |   Resolution:          
 Keywords:                    |  
Comment (by oliphant):

 This is a pretty good idea.   The right way to handle this, I think, is to
 attach a special-case fastclip function to the array data-type object (in
 the f-structure).

 Then if a data-type object has the fastclip function implemented (and min
 and max are simple scalars) it will use it otherwise, use the more general

 I'm trying very hard to avoid "magic function lists" which were in
 Numeric.  All special-case functions should be attached to the data-type
 object through the 'f' member.

Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/425#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list