Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

CumSum-class

The CumSum class.


Description

This class represents the cumulative sum.

Usage

CumSum(expr, axis = 2)

## S4 method for signature 'CumSum'
to_numeric(object, values)

## S4 method for signature 'CumSum'
dim_from_args(object)

## S4 method for signature 'CumSum'
get_data(object)

## S4 method for signature 'CumSum'
.grad(object, values)

## S4 method for signature 'CumSum'
graph_implementation(object, arg_objs, dim, 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 numeric values for the arguments

arg_objs

A list of linear expressions for each argument.

dim

A vector representing the dimensions 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.

  • 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.

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.


CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.