Learn R Programming

CVXR (version 1.0)

AffAtom-class: The AffAtom class.

Description

This virtual class represents an affine atomic expression.

Usage

# S4 method for AffAtom
allow_complex(object)

# S4 method for AffAtom sign_from_args(object)

# S4 method for AffAtom is_imag(object)

# S4 method for AffAtom is_complex(object)

# S4 method for AffAtom is_atom_convex(object)

# S4 method for AffAtom is_atom_concave(object)

# S4 method for AffAtom is_incr(object, idx)

# S4 method for AffAtom is_decr(object, idx)

# S4 method for AffAtom is_quadratic(object)

# S4 method for AffAtom is_qpwa(object)

# S4 method for AffAtom is_pwl(object)

# S4 method for AffAtom is_psd(object)

# S4 method for AffAtom is_nsd(object)

# S4 method for 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