cumulativeSum
Returns one running total per input value.
API Reference
Signature
Parameters
Returns
Returns an ArithInstance[] with the same length as values.
Throws
- Throws if
valuesis not an array. - Throws if any value is non-finite.
Agent Contract
Agent Notes
- Empty input returns
[]. - Use this for running balances or cumulative report rows.