[Numpy-discussion] concatenate an array with a number
Mon Aug 4 09:58:00 CDT 2008
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.)
1. Is there a better way?
2. Would it be possible to allow numbers as arguments for concatenate?
More information about the Numpy-discussion