This class represents the elementwise multiplication of two expressions. The first expression must be constant.
MulElemwise(lh_const, rh_exp)# S4 method for MulElemwise
validate_args(object)
# S4 method for MulElemwise
to_numeric(object, values)
# S4 method for MulElemwise
size_from_args(object)
# S4 method for MulElemwise
sign_from_args(object)
# S4 method for MulElemwise
is_incr(object, idx)
# S4 method for MulElemwise
is_decr(object, idx)
# S4 method for MulElemwise
is_quadratic(object)
# S4 method for MulElemwise
graph_implementation(object, arg_objs, size,
data = NA_real_)
A list of arguments to the atom.
An index into the atom.
A list of linear expressions for each argument.
A vector with two elements representing the size of the resulting expression.
A list of additional data required by the atom.
validate_args
: Check the first argument is a constant.
to_numeric
: Multiply the values elementwise.
size_from_args
: The size of the atom.
sign_from_args
: The sign of the atom.
is_incr
: Is the left-hand constant positive?
is_decr
: Is the left-hand constant negative?
is_quadratic
: Is the right-hand expression quadratic?
graph_implementation
: The graph implementation of the atom.