Learn R Programming

CVXR (version 0.99-7)

-,Expression,missing-method: The NegExpression class.

Description

This class represents the negation of an affine expression.

Usage

# S4 method for Expression,missing
-(e1, e2)

# S4 method for Expression,Expression -(e1, e2)

# S4 method for Expression,ConstVal -(e1, e2)

# S4 method for ConstVal,Expression -(e1, e2)

# S4 method for NegExpression to_numeric(object, values)

# S4 method for NegExpression size_from_args(object)

# S4 method for NegExpression sign_from_args(object)

# S4 method for NegExpression is_incr(object, idx)

# S4 method for NegExpression is_decr(object, idx)

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

Arguments

e1, e2

The '>Expression objects or numeric constants to subtract.

object

A '>NegExpression object.

values

A list of arguments to the atom.

idx

An index into 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: Negate the value.

  • size_from_args: The size of the expression.

  • sign_from_args: The sign of the expression.

  • is_incr: The expression is not weakly increasing in any argument.

  • is_decr: The expression is weakly decreasing in every argument.

  • graph_implementation: The graph implementation of the expression.