Complex2Real.canonicalize_tree: Recursively Canonicalizes a Complex Expression.

View source: R/complex2real.R

Complex2Real.canonicalize_treeR Documentation

Recursively Canonicalizes a Complex Expression.

Description

Recursively Canonicalizes a Complex Expression.

Usage

Complex2Real.canonicalize_tree(expr, real2imag, leaf_map)

Arguments

expr

An Expression object.

real2imag

A list mapping the ID of the real part of a complex expression to the ID of its imaginary part.

leaf_map

A map that consists of a tree representation of the expression.

Value

A list of the parsed out real and imaginary components of the expression that was constructed by performing the canonicalization of each leaf in the tree.


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