[Numpy-tickets] [NumPy] #441: numpy from iter taking shape rather than count
NumPy
numpy-tickets@scipy....
Wed Jan 31 22:31:30 CST 2007
#441: numpy from iter taking shape rather than count
-------------------------+--------------------------------------------------
Reporter: tdennist | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
It would be great if the fromiter function in numpy took a shape argument
rather than a count argument and interpretted its input as n-dimensional
iterator of iterators of iterators (etc) of values instead of a 1
dimensional iterator of values.
Right now to add two dimension values, for instance you need to use a
custom dtype which gives you a recarray like structure, which is not
always what you want.
I've looked at the code. It doesn't look too involved but would require
someone more adept with reference counting than myself.
--Tom
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/441>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list