R/203_reductions_dgp2dcp_canonicalizers_log_canon.R

Defines functions .dgp_log_canon

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

## CVXPY SOURCE: reductions/dgp2dcp/canonicalizers/log_canon.py
## DGP canonicalizer for log: log(x) where x=exp(u) -> u (identity in log-space)

.dgp_log_canon <- function(expr, args) {
  list(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.