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

AffAtom-class

The AffAtom class.


Description

This virtual class represents an affine atomic expression.

Usage

## S4 method for signature 'AffAtom'
allow_complex(object)

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

## S4 method for signature 'AffAtom'
is_imag(object)

## S4 method for signature 'AffAtom'
is_complex(object)

## S4 method for signature 'AffAtom'
is_atom_convex(object)

## S4 method for signature 'AffAtom'
is_atom_concave(object)

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

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

## S4 method for signature 'AffAtom'
is_quadratic(object)

## S4 method for signature 'AffAtom'
is_qpwa(object)

## S4 method for signature 'AffAtom'
is_pwl(object)

## S4 method for signature 'AffAtom'
is_psd(object)

## S4 method for signature 'AffAtom'
is_nsd(object)

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

Arguments

object

An AffAtom object.

idx

An index into the atom.

values

A list of numeric values for the arguments

Methods (by generic)

  • allow_complex: Does the atom handle complex numbers?

  • sign_from_args: The sign of the atom.

  • is_imag: Is the atom imaginary?

  • is_complex: Is the atom complex valued?

  • is_atom_convex: The atom is convex.

  • is_atom_concave: The atom is concave.

  • is_incr: The atom is weakly increasing in every argument.

  • is_decr: The atom is not weakly decreasing in any argument.

  • is_quadratic: Is every argument quadratic?

  • is_qpwa: Is every argument quadratic of piecewise affine?

  • is_pwl: Is every argument piecewise linear?

  • is_psd: Is the atom a positive semidefinite matrix?

  • is_nsd: Is the atom a negative semidefinite matrix?

  • .grad: Gives the (sub/super)gradient of the atom w.r.t. each variable


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.