Trace-class function

The Trace class.

The Trace class.

This class represents the sum of the diagonal entries in a matrix. class

Trace(expr) ## S4 method for signature 'Trace' to_numeric(object, values) ## S4 method for signature 'Trace' validate_args(object) ## S4 method for signature 'Trace' dim_from_args(object) ## S4 method for signature 'Trace' is_atom_log_log_convex(object) ## S4 method for signature 'Trace' is_atom_log_log_concave(object) ## S4 method for signature 'Trace' graph_implementation(object, arg_objs, dim, data = NA_real_)

Arguments

  • expr: An Expression representing a matrix.
  • object: A Trace object.
  • values: A list of arguments to the atom.
  • arg_objs: A list of linear expressions for each argument.
  • dim: A vector representing the dimensions of the resulting expression.
  • data: A list of additional data required by the atom.

Methods (by generic)

  • 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.

Slots

  • expr: An Expression representing a matrix.
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07