This class represents the difference \(1 - x\) with domain \(\{x : 0 < x < 1\)}
OneMinusPos(x)
# S4 method for class 'OneMinusPos'
name(x)
# S4 method for class 'OneMinusPos'
to_numeric(object, values)
# S4 method for class 'OneMinusPos'
dim_from_args(object)
# S4 method for class 'OneMinusPos'
sign_from_args(object)
# S4 method for class 'OneMinusPos'
is_atom_convex(object)
# S4 method for class 'OneMinusPos'
is_atom_concave(object)
# S4 method for class 'OneMinusPos'
is_atom_log_log_convex(object)
# S4 method for class 'OneMinusPos'
is_atom_log_log_concave(object)
# S4 method for class 'OneMinusPos'
is_incr(object, idx)
# S4 method for class 'OneMinusPos'
is_decr(object, idx)
# S4 method for class 'OneMinusPos'
.grad(object, values)
An Expression or numeric matrix.
A OneMinusPos object.
A list of numeric values for the arguments
An index into the atom.
name(OneMinusPos)
: The name and arguments of the atom.
to_numeric(OneMinusPos)
: Returns one minus the value.
dim_from_args(OneMinusPos)
: The dimensions of the atom.
sign_from_args(OneMinusPos)
: Returns the sign (is positive, is negative) of the atom.
is_atom_convex(OneMinusPos)
: Is the atom convex?
is_atom_concave(OneMinusPos)
: Is the atom concave?
is_atom_log_log_convex(OneMinusPos)
: Is the atom log-log convex?
is_atom_log_log_concave(OneMinusPos)
: Is the atom log-log concave?
is_incr(OneMinusPos)
: Is the atom weakly increasing in the argument idx
?
is_decr(OneMinusPos)
: Is the atom weakly decreasing in the argument idx
?
.grad(OneMinusPos)
: Gives the (sub/super)gradient of the atom w.r.t. each variable
x
An Expression or numeric matrix.