Learn R Programming

CVXR (version 1.0-14)

sigma_max: Maximum Singular Value

Description

The maximum singular value of a matrix.

Usage

sigma_max(A = A)

Value

An Expression representing the maximum singular value.

Arguments

A

An Expression or matrix.

Examples

Run this code
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