[Numpy-tickets] [NumPy] #450: Make a.min() not copy data

NumPy numpy-tickets@scipy....
Tue Feb 13 18:26:15 CST 2007


#450: Make a.min() not copy data
------------------------------------------+---------------------------------
 Reporter:  goddard                       |        Owner:  somebody
     Type:  enhancement                   |       Status:  new     
 Priority:  normal                        |    Milestone:          
Component:  Other                         |      Version:  1.0.1   
 Severity:  normal                        |   Resolution:          
 Keywords:  reduce, memory, optimization  |  
------------------------------------------+---------------------------------
Comment (by goddard):

 Oops.  The example was mangled by wiki formatting.  Here it is again:


 {{{
 >>> import numpy as n
 >>> a = n.zeros((1024, 1024, 1400), n.int8)
 >>> a.min()
 0
 >>> b = a[1:,1:,1:]
 >>> b.min()
 Traceback (most recent call last):
   File "<pyshell#25>", line 1, in ?
     b.min()
 MemoryError
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/450#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