This is an archival dump of old wiki content --- see scipy.org for current material

Abstract

Adds elements for N arrays and returns the resultant array.

Signature


Function

add(arr, arr, ...)


Returns

return
returns an array of the summation of elements across the input arrays.

Arguments

arr
input array(s)

Details

xxx

Examples

   1 >>> from numpy import *
   2 >>> add(array([-1.2, 1.2]), array([1,3]))
   3 array([-0.2,  4.2])
   4 >>> array([-1.2, 1.2]) + array([1,3])
   5 array([-0.2,  4.2])

Notes

xxx

See Also

xxx

SciPy: add (last edited 2015-10-24 17:48:26 by anonymous)