MCPcopy Create free account
hub / github.com/numpy/numpy / cumproduct

Function cumproduct

numpy/core/fromnumeric.py:3857–3869  ·  view source on GitHub ↗

Return the cumulative product over the given axis. .. deprecated:: 1.25.0 ``cumproduct`` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `cumprod` instead. See Also -------- cumprod : equivalent function; see for details.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

3855
3856@array_function_dispatch(_cumproduct_dispatcher, verify=False)
3857def cumproduct(*args, **kwargs):
3858 """
3859 Return the cumulative product over the given axis.
3860
3861 .. deprecated:: 1.25.0
3862 ``cumproduct`` is deprecated as of NumPy 1.25.0, and will be
3863 removed in NumPy 2.0. Please use `cumprod` instead.
3864
3865 See Also
3866 --------
3867 cumprod : equivalent function; see for details.
3868 """
3869 return cumprod(*args, **kwargs)
3870
3871
3872def _sometrue_dispatcher(a, axis=None, out=None, keepdims=None, *,

Callers

nothing calls this directly

Calls 1

cumprodFunction · 0.85

Tested by

no test coverage detected