[Numpy-tickets] [NumPy] #594: Major slowdown when mixing array with Python's list
NumPy
numpy-tickets@scipy....
Thu Apr 3 10:25:05 CDT 2008
#594: Major slowdown when mixing array with Python's list
------------------------+---------------------------------------------------
Reporter: Boris | Owner: somebody
Type: defect | Status: closed
Priority: normal | Milestone: 1.0.5
Component: numpy.core | Version:
Severity: normal | Resolution: invalid
Keywords: |
------------------------+---------------------------------------------------
Changes (by oliphant):
* status: new => closed
* resolution: => invalid
Comment:
This is not a bug. The poster is concerned about the speed of saying
{{{
k = array([1,2,3,4,5])
}}}
But, the conversion to an array must be done at some point. And, yes, it
must be done in order for the indexing code to work. You can speed up
things by specifying the data-type to convert to:
{{{
k = array([1,2,3,4,5],int)
}}}
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/594#comment:4>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list