You've got to do this:
>>> from Numeric import *
>>> a=3Darray([1,2])
>>> b=3Darray([2,3])
>>> a+b
array([3, 5])
easy isn't it?
cheers,
Fl=E1vio
On Wed, 2004-04-07 at 16:49, Randy Heiland wrote:
> Apologies for this simplistic question - how can I add 2 arrays
> elm-wise, i.e,
> a=3D[1,2]
> b=3D[2,3]
> a+b =3D [3,5]
>=20
> --Randy
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli=
ck
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|