[NumPy-Tickets] [NumPy] #1553: clip(out=...) is incorrect for non-contiguous input

NumPy Trac numpy-tickets@scipy....
Fri Jul 23 20:12:11 CDT 2010


#1553: clip(out=...) is incorrect for non-contiguous input
-----------------------------+----------------------------------------------
 Reporter:  yury             |       Owner:  somebody
     Type:  defect           |      Status:  new     
 Priority:  normal           |   Milestone:          
Component:  numpy.core       |     Version:  1.4.0rc1
 Keywords:  clip contiguous  |  
-----------------------------+----------------------------------------------
 clip always copies data to out as if the input were contiguous

 {{{
 import numpy as np
 x = np.random.random((2,3))
 y = np.zeros((3,2))
 assert (x.T.clip(-np.infty, np.infty, y) == x.T).all()
 }}}

 This bug may be related:
 http://projects.scipy.org/numpy/ticket/1352

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1553>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list