Re: [Numpy-discussion] probably simple, reverse a reshape...

2009-02-23 Thread John [H2O]
John [H2O] wrote: > > Hello, this is probably one of those questions that is going to seem > simple after reading responses... > and a few more minutes of thinking: def row2shape(row,a): """ to get indices a 2d array row# to the 3d array from which it was reshaped. "" d0,d1

[Numpy-discussion] probably simple, reverse a reshape...

2009-02-23 Thread John [H2O]
Hello, this is probably one of those questions that is going to seem simple after reading responses... I'm trying to get the original array indices out of a row number from a reshaped array... shouldn't this be possible somehow? import numpy as np a = np.ones((3,5,10)) #for testing, I've done t