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

NegExpression-class

The NegExpression class.


Description

This class represents the negation of an affine expression.

Usage

## S4 method for signature 'Expression,missing'
e1 - e2

## S4 method for signature 'Expression,Expression'
e1 - e2

## S4 method for signature 'Expression,ConstVal'
e1 - e2

## S4 method for signature 'ConstVal,Expression'
e1 - e2

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

## S4 method for signature 'NegExpression'
sign_from_args(object)

## S4 method for signature 'NegExpression'
is_incr(object, idx)

## S4 method for signature 'NegExpression'
is_decr(object, idx)

## S4 method for signature 'NegExpression'
is_symmetric(object)

## S4 method for signature 'NegExpression'
is_hermitian(object)

## S4 method for signature 'NegExpression'
graph_implementation(object, arg_objs, dim, data = NA_real_)

Arguments

e1, e2

The Expression objects or numeric constants to subtract.

object

A NegExpression object.

idx

An index into the atom.

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)

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

  • sign_from_args: The (is positive, is negative) 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.

  • is_symmetric: Is the expression symmetric?

  • is_hermitian: Is the expression Hermitian?

  • graph_implementation: The graph implementation of the expression.


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.