This class represents the sum of the diagonal entries in a matrix.
Trace(expr)# S4 method for Trace
validate_args(object)
# S4 method for Trace
to_numeric(object, values)
# S4 method for Trace
size_from_args(object)
# S4 method for Trace
graph_implementation(object, arg_objs, size,
data = NA_real_)
A list of arguments to 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 argument is a square matrix.
to_numeric
: Sum the diagonal entries.
size_from_args
: The atom is a scalar.
graph_implementation
: The graph implementation of the atom.