[Numpy-discussion] indexing question
Thu Mar 5 04:43:54 CST 2009
On Thu, Mar 5, 2009 at 10:40 AM, Robin <email@example.com> wrote:
> I have an indexing problem, and I know it's a bit lazy to ask the
> list, sometime when people do interesting tricks come up so I hope no
> one minds!
> I have a 2D array X.shape = (a,b)
> and I want to change it into new array which is shape (2,(a*b)) which
> has the following form:
actually the new array would have dimensions (2,(a*(b-1) ) as the last
bin wouldn't have the second point.
More information about the Numpy-discussion