This class represents the negation of an affine expression.
# S4 method for class 'Expression,missing'
e1 - e2
# S4 method for class 'Expression,Expression'
e1 - e2
# S4 method for class 'Expression,ConstVal'
e1 - e2
# S4 method for class 'ConstVal,Expression'
e1 - e2
# S4 method for class 'NegExpression'
dim_from_args(object)
# S4 method for class 'NegExpression'
sign_from_args(object)
# S4 method for class 'NegExpression'
is_incr(object, idx)
# S4 method for class 'NegExpression'
is_decr(object, idx)
# S4 method for class 'NegExpression'
is_symmetric(object)
# S4 method for class 'NegExpression'
is_hermitian(object)
# S4 method for class 'NegExpression'
graph_implementation(object, arg_objs, dim, data = NA_real_)
The Expression objects or numeric constants to subtract.
A NegExpression object.
An index into the atom.
A list of linear expressions for each argument.
A vector representing the dimensions of the resulting expression.
A list of additional data required by the atom.
dim_from_args(NegExpression)
: The (row, col) dimensions of the expression.
sign_from_args(NegExpression)
: The (is positive, is negative) sign of the expression.
is_incr(NegExpression)
: The expression is not weakly increasing in any argument.
is_decr(NegExpression)
: The expression is weakly decreasing in every argument.
is_symmetric(NegExpression)
: Is the expression symmetric?
is_hermitian(NegExpression)
: Is the expression Hermitian?
graph_implementation(NegExpression)
: The graph implementation of the expression.