Re: [Numpy-discussion] make hstack and vstack promote 1-D argument to 2-D when necessary

2009-11-23 Thread Robert Kern
On Mon, Nov 23, 2009 at 18:43, Dr. Phillip M. Feldman wrote: > > I opened ticket #1302 to make the following enhancement request: > > I'd like to see hstack and vstack promote 1-D arguments to 2-D when this is > necessary to make the dimensions match.  In the following example, c_ works > as expec

[Numpy-discussion] make hstack and vstack promote 1-D argument to 2-D when necessary

2009-11-23 Thread Dr. Phillip M. Feldman
I opened ticket #1302 to make the following enhancement request: I'd like to see hstack and vstack promote 1-D arguments to 2-D when this is necessary to make the dimensions match. In the following example, c_ works as expected while hstack does not: [~]|8> x <8> array([[1, 2, 3], [4,