MacaulaySplit#

Source: models/common/MacaulaySplit.py

Split a Scalar into its Macaulay (positive) and negative parts: \(\langle x \rangle_+ = \max(x, 0)\) and \(\langle x \rangle_- = x - \langle x \rangle_+\).

Inputs#

from — input · Scalar · required

The Scalar to split

Outputs#

to_positive — output · Scalar · required

Name of the Macaulay (positive) part output

to_negative — output · Scalar · required

Name of the negative-part output