Learn R Programming

CVXR (version 0.99-7)

DiagMat-class: The DiagMat class.

Description

This class represents the extraction of the diagonal from a square matrix.

Usage

DiagMat(expr)

# S4 method for DiagMat to_numeric(object, values)

# S4 method for DiagMat size_from_args(object)

# S4 method for DiagMat graph_implementation(object, arg_objs, size, data = NA_real_)

Arguments

expr

An '>Expression representing the matrix whose diagonal we are interested in.

object

A '>DiagMat object.

values

A list of arguments to the atom.

arg_objs

A list of linear expressions for each argument.

size

A vector with two elements representing the size of the resulting expression.

data

A list of additional data required by the atom.

Methods (by generic)

  • to_numeric: Extract the diagonal from a square matrix constant.

  • size_from_args: The size of the atom.

  • graph_implementation: The graph implementation of the atom.

Slots

expr

An '>Expression representing the matrix whose diagonal we are interested in.