Apologies for this simplistic question - how can I add 2 arrays
elm-wise, i.e,
a=[1,2]
b=[2,3]
a+b = [3,5]
--Randy
Apologies for this simplistic question - how can I add 2 arrays
elm-wise, i.e,
a=[1,2]
b=[2,3]
a+b = [3,5]
--Randy
You’ve got to do this:
from Numeric import *
a=array([1,2])
b=array([2,3])
a+b
array([3, 5])
easy isn’t it?
cheers,
Flávio
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=[1,2] b=[2,3] a+b = [3,5] --Randy ------------------------------------------------------- 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=1470&alloc_id=3638&op=click](http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click) _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net [https://lists.sourceforge.net/lists/listinfo/matplotlib-users](https://lists.sourceforge.net/lists/listinfo/matplotlib-users)