Learn R Programming

CVXR (version 0.99-7)

AxisAtom-class: The AxisAtom class.

Description

This virtual class represents atomic expressions that can be applied along an axis in CVXR.

Usage

# S4 method for AxisAtom
size_from_args(object)

# S4 method for AxisAtom get_data(object)

# S4 method for AxisAtom validate_args(object)

Arguments

object

An '>Atom object.

Methods (by generic)

  • size_from_args: The size of the atom deteremined from its arguments.

  • get_data: A list containing axis.

  • validate_args: Check that the new shape has the same number of entries as the old.

Slots

expr

A numeric element, data.frame, matrix, vector, or Expression.

axis

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