Dgp2Dcp canonicalizer for the quadratic form atom

Dgp2Dcp.quad_form_canon(expr, args)

Arguments

expr

An Expression object

args

A list of values for the expr variable

Value

A canonicalization of the quadratic form atom of a DGP expression, where the returned expression is the transformed DCP equivalent.