R/202_reductions_dgp2dcp_canonicalizers_exp_canon.R

Defines functions .dgp_exp_canon

#####
## DO NOT EDIT THIS FILE!! EDIT THE SOURCE INSTEAD: rsrc_tree/reductions/dgp2dcp/canonicalizers/exp_canon.R
#####

## CVXPY SOURCE: reductions/dgp2dcp/canonicalizers/exp_canon.py
## DGP canonicalizer for exp: exp(x) in DGP stays as Exp(log_x) in DCP

.dgp_exp_canon <- function(expr, args) {
  list(Exp(args[[1L]]), list())
}

Try the CVXR package in your browser

Any scripts or data that you put into this service are public.

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