spire.algebra
A trait for things that have some notion of sign and the ability to ensure something has a positive sign.
An idempotent function that ensures an object has a non-negative sign.
Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.
a
Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.
A trait for things that have some notion of sign and the ability to ensure something has a positive sign.