Learn R Programming

CVXR (version 1.0-14)

Diag: Turns an expression into a DiagVec object

Description

Turns an expression into a DiagVec object

Usage

Diag(expr)

Value

An Expression representing the diagonal vector/matrix.

Arguments

expr

An Expression that represents a vector or square matrix.