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

NumPy numpy-tickets@scipy....
Tue Feb 13 18:21:06 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       |    Keywords:  reduce, memory, optimization
-------------------------+--------------------------------------------------
 I would like the min/max array methods not to copy the array.  This limits
 the ability to handle very large data sets (our case is 3-D electron
 microscopy).  Here's an example:

 >>> 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>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list