Learn R Programming

CVXR (version 1.0)

DiagVec-class: The DiagVec class.

Description

This class represents the conversion of a vector into a diagonal matrix.

Usage

DiagVec(expr)

# S4 method for DiagVec to_numeric(object, values)

# S4 method for DiagVec dim_from_args(object)

# S4 method for DiagVec is_atom_log_log_convex(object)

# S4 method for DiagVec is_atom_log_log_concave(object)

# S4 method for DiagVec is_symmetric(object)

# S4 method for DiagVec is_hermitian(object)

# S4 method for DiagVec graph_implementation(object, arg_objs, dim, data = NA_real_)

Arguments

expr

An '>Expression representing the vector to convert.

object

A '>DiagVec 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: Convert the vector constant into a diagonal matrix.

  • dim_from_args: The dimensions of the atom.

  • is_atom_log_log_convex: Is the atom log-log convex?

  • is_atom_log_log_concave: Is the atom log-log concave?

  • is_symmetric: Is the expression symmetric?

  • is_hermitian: Is the expression hermitian?

  • graph_implementation: The graph implementation of the atom.

Slots

expr

An '>Expression representing the vector to convert.