SymbolicQuadForm-class | R Documentation |
The SymbolicQuadForm class.
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)
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 |
dim_from_args(SymbolicQuadForm)
: The dimensions of the atom.
sign_from_args(SymbolicQuadForm)
: The sign (is positive, is negative) of the atom.
get_data(SymbolicQuadForm)
: The original expression.
is_atom_convex(SymbolicQuadForm)
: Is the original expression convex?
is_atom_concave(SymbolicQuadForm)
: Is the original expression concave?
is_incr(SymbolicQuadForm)
: Is the original expression weakly increasing in argument idx
?
is_decr(SymbolicQuadForm)
: Is the original expression weakly decreasing in argument idx
?
is_quadratic(SymbolicQuadForm)
: The atom is quadratic.
.grad(SymbolicQuadForm)
: Gives the (sub/super)gradient of the atom w.r.t. each variable
x
An Expression or numeric vector.
P
An Expression, numeric matrix, or vector.
original_expression
The original Expression.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.