This class represents the sum of the diagonal entries in a matrix.
Trace(expr)
# S4 method for class 'Trace'
to_numeric(object, values)
# S4 method for class 'Trace'
validate_args(object)
# S4 method for class 'Trace'
dim_from_args(object)
# S4 method for class 'Trace'
is_atom_log_log_convex(object)
# S4 method for class 'Trace'
is_atom_log_log_concave(object)
# S4 method for class 'Trace'
graph_implementation(object, arg_objs, dim, data = NA_real_)An Expression representing a matrix.
A Trace object.
A list of arguments to 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.
to_numeric(Trace): Sum the diagonal entries.
validate_args(Trace): Check the argument is a square matrix.
dim_from_args(Trace): The atom is a scalar.
is_atom_log_log_convex(Trace): Is the atom log-log convex?
is_atom_log_log_concave(Trace): Is the atom log-log concave?
graph_implementation(Trace): The graph implementation of the atom.
exprAn Expression representing a matrix.