Learn R Programming

CVXR (version 1.0)

OneMinusPos-class: The OneMinusPos class.

Description

This class represents the difference \(1 - x\) with domain \(\{x : 0 < x < 1\)}

Usage

OneMinusPos(x)

# S4 method for OneMinusPos name(x)

# S4 method for OneMinusPos to_numeric(object, values)

# S4 method for OneMinusPos dim_from_args(object)

# S4 method for OneMinusPos sign_from_args(object)

# S4 method for OneMinusPos is_atom_convex(object)

# S4 method for OneMinusPos is_atom_concave(object)

# S4 method for OneMinusPos is_atom_log_log_convex(object)

# S4 method for OneMinusPos is_atom_log_log_concave(object)

# S4 method for OneMinusPos is_incr(object, idx)

# S4 method for OneMinusPos is_decr(object, idx)

# S4 method for OneMinusPos .grad(object, values)

Arguments

x

An '>Expression or numeric matrix.

object

A '>OneMinusPos object.

values

A list of numeric values for the arguments

idx

An index into the atom.

Methods (by generic)

  • name: The name and arguments of the atom.

  • to_numeric: Returns one minus the value.

  • dim_from_args: The dimensions of the atom.

  • sign_from_args: Returns the sign (is positive, is negative) of the atom.

  • is_atom_convex: Is the atom convex?

  • is_atom_concave: Is the atom concave?

  • is_atom_log_log_convex: Is the atom log-log convex?

  • is_atom_log_log_concave: Is the atom log-log concave?

  • is_incr: Is the atom weakly increasing in the argument idx?

  • is_decr: Is the atom weakly decreasing in the argument idx?

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

Slots

x

An '>Expression or numeric matrix.