[Numpy-discussion] concatenate an array with a number
Mon Aug 4 11:19:46 CDT 2008
On Mon, Aug 4, 2008 at 3:58 PM, Nicolas Chopin
> Hi list,
> I want to do this:
> y = concatenate(x,x)
> where x is a 1d array.
> However, the only way I managed to make this work is:
> y = concatenate( array((x,),ndmin=1), x)
> which is kind of cryptic. (If I remove ndmin, numpy still complains.)
I think r_[x,x] will do you what you want...
More information about the Numpy-discussion