Re: [Numpy-discussion] Generically Creating Views of Equal Dimensions

2008-04-15 Thread Alexander Michael
On Tue, Apr 15, 2008 at 3:38 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 9:54 AM, Alexander Michael <[EMAIL PROTECTED]> wrote: > > Is there an already existing method to create views that add as many > > dimensions as required to bring a collection of arrays to the same

Re: [Numpy-discussion] Generically Creating Views of Equal Dimensions

2008-04-15 Thread Robert Kern
On Tue, Apr 15, 2008 at 9:54 AM, Alexander Michael <[EMAIL PROTECTED]> wrote: > Is there an already existing method to create views that add as many > dimensions as required to bring a collection of arrays to the same > dimensionality by adding the appropriate number of numpy.newaxis's to > the

[Numpy-discussion] Generically Creating Views of Equal Dimensions

2008-04-15 Thread Alexander Michael
Is there an already existing method to create views that add as many dimensions as required to bring a collection of arrays to the same dimensionality by adding the appropriate number of numpy.newaxis's to the ends? For example: In [1]: a = numpy.array([1, 2, 3, 4]) In [2]: b = numpy.array([[1,10]