np_cumprod
Compute the cumulative product of array elements along a given axis, or over the flattened array if no axis is specified.
Instructions
Return the cumulative product of the array along a given axis.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"array": "<array>"
},
"name": "np_cumprod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| axis | No | The axis along which to compute cumprod (default: None, flattened). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |