powered by
This class represents the upper triangular part of a positive semidefinite variable.
SemidefUpperTri(n, name = NA_character_)# S4 method for SemidefUpperTri as.character(x)# S4 method for SemidefUpperTri get_data(object)# S4 method for SemidefUpperTri canonicalize(object)# S4 method for SymmetricUpperTri canonicalize(object)
# S4 method for SemidefUpperTri as.character(x)
# S4 method for SemidefUpperTri get_data(object)
# S4 method for SemidefUpperTri canonicalize(object)
# S4 method for SymmetricUpperTri canonicalize(object)
The number of rows/columns in the matrix.
(Optional) A character string representing the name of the variable.
A '>SemidefUpperTri object.
get_data: Returns list(n, name).
get_data
list(n, name)
canonicalize: Enforce that the variable be positive semidefinite.
canonicalize
canonicalize: Enforce that the variable be symmetric.
id
(Internal) A unique identification number used internally.
n
rows
The number of rows in the variable.
cols
The number of columns in the variable.
name
primal_value
(Internal) The primal value of the variable stored internally.
# NOT RUN { x <- SemidefUpperTri(3) as.character(x) get_data(x) canonicalize(x) # }
Run the code above in your browser using DataLab