expr_sign: Get the DCP Sign of an Expression

expr_signR Documentation

Get the DCP Sign of an Expression

Description

Returns the sign of an expression under DCP analysis. Use this instead of sign(), which conflicts with the base R function.

Usage

expr_sign(x, ...)

Arguments

x

An expression object.

...

Not used.

Value

Character string: "POSITIVE", "NEGATIVE", "ZERO", or "UNKNOWN".


CVXR documentation built on March 6, 2026, 9:10 a.m.