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

frominput · Scalar · required

The Scalar to split

Outputs

to_positiveoutput · Scalar · required

Name of the Macaulay (positive) part output

to_negativeoutput · Scalar · required

Name of the negative-part output