SciPy

This is documentation for an old release of NumPy (version 1.14.5). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.ndarray.sum

ndarray.sum(axis=None, dtype=None, out=None, keepdims=False)

Return the sum of the array elements over the given axis.

Refer to numpy.sum for full documentation.

See also

numpy.sum
equivalent function

Previous topic

numpy.ndarray.std

Next topic

numpy.ndarray.swapaxes