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· requiredThe Scalar to split
Outputs¶
to_positive—output·Scalar· requiredName of the Macaulay (positive) part output
to_negative—output·Scalar· requiredName of the negative-part output