[NumPy-Tickets] [NumPy] #450: Make a.min() not copy data
NumPy Trac
numpy-tickets@scipy....
Wed Aug 31 13:56:58 CDT 2011
#450: Make a.min() not copy data
----------------------+-----------------------------------------------------
Reporter: goddard | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone: 2.0.0
Component: Other | Version: devel
Resolution: fixed | Keywords: reduce, memory, optimization
----------------------+-----------------------------------------------------
Changes (by mwiebe):
* status: needs_review => closed
* resolution: => fixed
* milestone: Unscheduled => 2.0.0
Comment:
The missingdata branch is merged, here are my timings from the current
master:
{{{
In [1]: a = np.random.rand(1000,1000,10)
In [2]: timeit a.min()
10 loops, best of 3: 51 ms per loop
In [3]: timeit np.min(a)
10 loops, best of 3: 51.1 ms per loop
In [4]: timeit a[1:,1:,1:].min()
10 loops, best of 3: 76.6 ms per loop
In [5]: timeit np.min(a[1:,1:,1:])
10 loops, best of 3: 76.6 ms per loop
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/450#comment:12>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list