Return the product of array elements over a given axis. .. deprecated:: 1.25.0 ``product`` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead. See Also -------- prod : equivalent function; see for details.
(*args, **kwargs)
| 3831 | |
| 3832 | @array_function_dispatch(_product_dispatcher, verify=False) |
| 3833 | def product(*args, **kwargs): |
| 3834 | """ |
| 3835 | Return the product of array elements over a given axis. |
| 3836 | |
| 3837 | .. deprecated:: 1.25.0 |
| 3838 | ``product`` is deprecated as of NumPy 1.25.0, and will be |
| 3839 | removed in NumPy 2.0. Please use `prod` instead. |
| 3840 | |
| 3841 | See Also |
| 3842 | -------- |
| 3843 | prod : equivalent function; see for details. |
| 3844 | """ |
| 3845 | return prod(*args, **kwargs) |
| 3846 | |
| 3847 | |
| 3848 | def _cumproduct_dispatcher(a, axis=None, dtype=None, out=None): |