Learn R Programming

CVXR (version 1.0)

Promote-class: The Promote class.

Description

This class represents the promotion of a scalar expression into a vector/matrix.

Usage

Promote(expr, promoted_dim)

# S4 method for Promote to_numeric(object, values)

# S4 method for Promote is_symmetric(object)

# S4 method for Promote dim_from_args(object)

# S4 method for Promote is_atom_log_log_convex(object)

# S4 method for Promote is_atom_log_log_concave(object)

# S4 method for Promote get_data(object)

# S4 method for Promote graph_implementation(object, arg_objs, dim, data = NA_real_)

Arguments

expr

An '>Expression or numeric constant.

promoted_dim

The desired dimensions.

object

A '>Promote object.

values

A list containing the value to promote.

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: Promotes the value to the new dimensions.

  • is_symmetric: Is the expression symmetric?

  • dim_from_args: Returns the (row, col) dimensions of the expression.

  • is_atom_log_log_convex: Is the atom log-log convex?

  • is_atom_log_log_concave: Is the atom log-log concave?

  • get_data: Returns information needed to reconstruct the expression besides the args.

  • graph_implementation: The graph implementation of the atom.

Slots

expr

An '>Expression or numeric constant.

promoted_dim

The desired dimensions.