[Numpy-tickets] [NumPy] #223: reshape should be able to guess the last dimension

NumPy numpy-tickets at scipy.net
Thu Aug 3 03:39:07 CDT 2006


#223: reshape should be able to guess the last dimension
------------------------------+---------------------------------------------
 Reporter:  benjamin.thyreau  |       Owner:  somebody
     Type:  enhancement       |      Status:  new     
 Priority:  normal            |   Milestone:          
Component:  numpy.core        |     Version:          
 Severity:  normal            |    Keywords:          
------------------------------+---------------------------------------------
 Hi,
 I have an array Y, so that
 shape(Y) == (125, 46, 63, 53)
 And I often need to reshape it in
 Y.reshape(125, 46*63*53)
 But it's boring to type and i'd like to be able to just type
 Y.reshape((125,)) and it guess the last dimension from the size..
 Thanks !

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/223>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list