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

SymbolicQuadForm-class

The SymbolicQuadForm class.


Description

The SymbolicQuadForm class.

Usage

SymbolicQuadForm(x, P, expr)

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

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

## S4 method for signature 'SymbolicQuadForm'
get_data(object)

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

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

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

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

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

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

Arguments

x

An Expression or numeric vector.

P

An Expression, numeric matrix, or vector.

expr

The original Expression.

object

A SymbolicQuadForm object.

idx

An index into the atom.

values

A list of numeric values for the arguments

Methods (by generic)

  • dim_from_args: The dimensions of the atom.

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

  • get_data: The original expression.

  • is_atom_convex: Is the original expression convex?

  • is_atom_concave: Is the original expression concave?

  • is_incr: Is the original expression weakly increasing in argument idx?

  • is_decr: Is the original expression weakly decreasing in argument idx?

  • is_quadratic: The atom is quadratic.

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

Slots

x

An Expression or numeric vector.

P

An Expression, numeric matrix, or vector.

original_expression

The original 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.