Learn R Programming

CVXR (version 0.99-7)

SymmetricUpperTri-class: The SymmetricUpperTri class.

Description

This class represents the upper triangular part of a symmetric variable.

Usage

SymmetricUpperTri(n, name = NA_character_)

# S4 method for SymmetricUpperTri as.character(x)

# S4 method for SymmetricUpperTri get_data(object)

Arguments

n

The number of rows/columns in the matrix.

name

(Optional) A character string representing the name of the variable.

x, object

A '>SymmetricUpperTri object.

Methods (by generic)

  • get_data: Returns list(n, name).

Slots

id

(Internal) A unique identification number used internally.

n

The number of rows/columns in the matrix.

rows

The number of rows in the variable.

cols

The number of columns in the variable.

name

(Optional) A character string representing the name of the variable.

primal_value

(Internal) The primal value of the variable stored internally.

Examples

Run this code
# NOT RUN {
x <- SymmetricUpperTri(3, name="s3")
name(x)
get_data(x)
# }

Run the code above in your browser using DataLab