Learn R Programming

CVXR (version 1.9.1)

diff_pos: The difference x - y with domain x > y > 0

Description

Equivalent to x * one_minus_pos(y / x).

Usage

diff_pos(x, y)

Value

A product expression

Arguments

x

An Expression (positive)

y

An Expression (positive, elementwise less than x)