This is documentation for an old release of NumPy (version 1.3.). 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)

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.trace

Next topic

numpy.ndarray.cumsum

This Page

Quick search