This class represents the extraction of the diagonal from a square matrix.
DiagMat(expr)
# S4 method for class 'DiagMat'
to_numeric(object, values)
# S4 method for class 'DiagMat'
dim_from_args(object)
# S4 method for class 'DiagMat'
is_atom_log_log_convex(object)
# S4 method for class 'DiagMat'
is_atom_log_log_concave(object)
# S4 method for class 'DiagMat'
graph_implementation(object, arg_objs, dim, data = NA_real_)
An Expression representing the matrix whose diagonal we are interested in.
A DiagMat 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(DiagMat)
: Extract the diagonal from a square matrix constant.
dim_from_args(DiagMat)
: The size of the atom.
is_atom_log_log_convex(DiagMat)
: Is the atom log-log convex?
is_atom_log_log_concave(DiagMat)
: Is the atom log-log concave?
graph_implementation(DiagMat)
: The graph implementation of the atom.
expr
An Expression representing the matrix whose diagonal we are interested in.