Learn R Programming

CVXR (version 1.9.1)

expr_sign: 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, ...)

Value

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

Arguments

x

An expression object.

...

Not used.