This RFC requests to include a new API in the array API specification for the purpose of computing the cumulative product.
Overview
Based on array comparison data, the API is available in the majority of the libraries in the PyData ecosystem.
Prior art
Proposal:
def cumprod(x: array, /, *, axis: Optional[int] = None, dtype: Optional[dtype] = None) -> array
dtype kwarg is for consistency with sum et al
cc @oleksandr-pavlyk
This RFC requests to include a new API in the array API specification for the purpose of computing the cumulative product.
Overview
Based on array comparison data, the API is available in the majority of the libraries in the PyData ecosystem.
Prior art
Proposal:
dtypekwarg is for consistency withsumet alcc @oleksandr-pavlyk