cumsum
Syntax
cumsum(X)
Please see Cumulative Window Functions for the parameter description and windowing logic.
Details
Cumulatively calculate the sum of the elements in X.
Note:
DolphinDB's
cumsum function works the same
as NumPy's numpy.cumsum, except that it only accepts
a single parameter, X, and does not support parameters like axis,
dtype, or out in numpy.cumsum.Similar to
NumPy's numpy.cumsum, but DolphinDB's
cumsum accumulates along columns by default for matrices
(equivalent to numpy.cumsum with axis=0), and only
accepts one parameter X without support for the axis,
dtype, or out parameters available in
numpy.cumsum.
Returns
LONG/DOUBLE type, with the same data form as X.
