This class represents the cumulative sum.
CumSum(expr, axis = 2)# S4 method for CumSum
to_numeric(object, values)
# S4 method for CumSum
dim_from_args(object)
# S4 method for CumSum
get_data(object)
# S4 method for CumSum
.grad(object, values)
# S4 method for CumSum
graph_implementation(object, arg_objs, dim, data = NA_real_)
(Optional) The dimension across which to apply the function: 1 indicates rows, and 2 indicates columns. The default is 2.
A list of numeric values for the arguments
A list of linear expressions for each argument.
A vector representing the dimensions of the resulting expression.
A list of additional data required by the atom.
to_numeric: The cumulative sum of the values along the specified axis.
dim_from_args: The dimensions of the atom.
get_data: Returns the axis along which the cumulative sum is taken.
.grad: Gives the (sub/super)gradient of the atom w.r.t. each variable
graph_implementation: The graph implementation of the atom.