exp: Natural Exponential

exp,Expression-methodR Documentation

Natural Exponential

Description

The elementwise natural exponential.

Usage

## S4 method for signature 'Expression'
exp(x)

Arguments

x

An Expression.

Value

An Expression representing the natural exponential of the input.

Examples

x <- Variable(5)
obj <- Minimize(sum(exp(x)))
prob <- Problem(obj, list(sum(x) == 1))
result <- solve(prob)
result$getValue(x)

CVXR documentation built on June 27, 2024, 5:11 p.m.