Learn R Programming

CVXR (version 0.99-7)

CumSum-class: The CumSum class.

Description

This class represents the cumulative sum.

Usage

CumSum(expr, axis = 2)

# S4 method for CumSum to_numeric(object, values)

# S4 method for CumSum size_from_args(object)

# S4 method for CumSum validate_args(object)

# S4 method for CumSum graph_implementation(object, arg_objs, size, data = NA_real_)

Arguments

expr

An '>Expression to be summed.

axis

(Optional) The dimension across which to apply the function: 1 indicates rows, and 2 indicates columns. The default is 2.

object

A '>CumSum object.

values

A list of arguments to the atom.

arg_objs

A list of linear expressions for each argument.

size

A vector with two elements representing the size of the resulting expression.

data

A list of additional data required by the atom.

Methods (by generic)

  • to_numeric: The cumulative sum of the values along the specified axis.

  • size_from_args: The size of the atom.

  • validate_args: Check that axis is either 1 or 2.

  • graph_implementation: The graph implementation of the atom.

Slots

expr

An '>Expression to be summed.

axis

(Optional) The dimension across which to apply the function: 1 indicates rows, and 2 indicates columns. The default is 2.