Parallel arithmetic?

jepler at unpythonic.net jepler at unpythonic.net
Thu Aug 4 19:15:37 EDT 2005


If you use numarray, you *can* write
	c = a-b

>>> import numarray
>>> a = numarray.array([1,2,3])
>>> b = numarray.array([5,0,2])
>>> c = a-b
>>> c
array([-4,  2,  1])

numarray is packaged separately from Python.
http://www.stsci.edu/resources/software_hardware/numarray

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050804/7cba611f/attachment.sig>


More information about the Python-list mailing list