This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / ndimage / _measurements / sum

function

scipy.ndimage._measurements:sum

source: build-install/usr/lib/python3.14/site-packages/scipy/ndimage/_measurements.py:701

Signature

def sum(input, labels = None, index = None)

Summary

Calculate the sum of the values of the array.

Notes

This is an alias for ndimage.sum_labels kept for backwards compatibility reasons, for new code please prefer sum_labels. See the sum_labels docstring for more details.

Aliases

  • scipy.ndimage.sum