curvature-atom | R Documentation |
Determine if an atom is convex, concave, or affine.
is_atom_convex(object)
is_atom_concave(object)
is_atom_affine(object)
## S4 method for signature 'Atom'
is_atom_convex(object)
## S4 method for signature 'Atom'
is_atom_concave(object)
## S4 method for signature 'Atom'
is_atom_affine(object)
## S4 method for signature 'Atom'
is_atom_log_log_convex(object)
## S4 method for signature 'Atom'
is_atom_log_log_concave(object)
## S4 method for signature 'Atom'
is_atom_log_log_affine(object)
object |
A Atom object. |
A logical value.
x <- Variable()
is_atom_convex(x^2)
is_atom_convex(sqrt(x))
is_atom_convex(log(x))
is_atom_concave(-abs(x))
is_atom_concave(x^2)
is_atom_concave(sqrt(x))
is_atom_affine(2*x)
is_atom_affine(x^2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.