grapes-less-than-less-than-grapes: Negative Semidefinite Constraint Operator

%<<%R Documentation

Negative Semidefinite Constraint Operator

Description

Creates an NSD constraint: e2 - e1 is positive semidefinite, i.e., e1 is NSD relative to e2. This is the R equivalent of Python's A << B.

Usage

e1 %<<% e2

Arguments

e1, e2

CVXR expressions or numeric matrices.

Value

A PSD constraint object.

See Also

PSD()

Examples

X <- Variable(c(3, 3), symmetric = TRUE)
constr <- X %<<% diag(3)  # I - X is PSD (X is NSD relative to I)

CVXR documentation built on Oct. 19, 2026, 5:07 p.m.