Re: [Numpy-discussion] hstack

2012-02-08 Thread Paulo Jabardo
The problem is that hstack needs a tuple as argument: x = ones( (9,1) ) y = zeros( (9,2) ) z = hstack( (x,y) ) Notice the parenthesis in the arguments. Paulo De: Stephanie Cooke Para: numpy-discussion@scipy.org Enviadas: Quarta-feira, 8 de Fevereiro de 2012

Re: [Numpy-discussion] hstack

2012-02-08 Thread Malcolm Reynolds
You On Wed, Feb 8, 2012 at 4:32 PM, Stephanie Cooke wrote: > Hello, > > When I try to use the command hstack, I am given the error message > "TypeError: hstack() takes exactly 1 argument (2 given)". I have a 9X1 > array (called array) that I would like to concatenate to a 9X2 matrix > (called mat

Re: [Numpy-discussion] hstack

2012-02-08 Thread Tony Yu
On Wed, Feb 8, 2012 at 11:32 AM, Stephanie Cooke wrote: > Hello, > > When I try to use the command hstack, I am given the error message > "TypeError: hstack() takes exactly 1 argument (2 given)". I have a 9X1 > array (called array) that I would like to concatenate to a 9X2 matrix > (called matrix)