Learn R Programming

CVXR (version 1.0)

norm_nuc: Nuclear Norm

Description

The nuclear norm, i.e. sum of the singular values of a matrix.

Usage

norm_nuc(A)

Arguments

A

An '>Expression or matrix.

Value

An '>Expression representing the nuclear norm of the input.

Examples

Run this code
# NOT RUN {
C <- Variable(3,3)
val <- cbind(3:5, 6:8, 9:11)
prob <- Problem(Minimize(norm_nuc(C)), list(C == val))
result <- solve(prob)
result$value
# }

Run the code above in your browser using DataLab