Learn R Programming

CVXR (version 1.0)

sigma_max: Maximum Singular Value

Description

The maximum singular value of a matrix.

Usage

sigma_max(A = A)

Arguments

A

An '>Expression or matrix.

Value

An '>Expression representing the maximum singular value.

Examples

Run this code
# NOT RUN {
C <- Variable(3,2)
val <- rbind(c(1,2), c(3,4), c(5,6))
obj <- sigma_max(C)
constr <- list(C == val)
prob <- Problem(Minimize(obj), constr)
result <- solve(prob, solver = "SCS")
result$value
result$getValue(C)
# }

Run the code above in your browser using DataLab