Numarray append

Pearu Peterson pearu at cens.ioc.ee
Sun Nov 10 03:25:02 EST 2002


On 9 Nov 2002, Fabrizio wrote:

> Hi,
> 
> Is there a quick way to append elements to a Numarray array ?
> 
> I could not find any.

Using Numeric.concatenate should be the quickest way to achieve that.
E.g.

>>> a=Numeric.arange(5)
>>> a=Numeric.concatenate((a,range(4)))
>>> a
array([0, 1, 2, 3, 4, 0, 1, 2, 3])

Pearu





More information about the Python-list mailing list