constraints (pmrf.constraints)

Constraints for parameters.

Can be used for parameter factories in pmrf.parameters.

Re-exports from the Parax library.

Classes

AbstractConstraint()

The base class for all physical constraints in Parax.

RealLine([shape])

Represents a value that can span the entire real number line.

Positive([shape, dtype])

Convenience constraint for values that must be strictly positive (> 0).

Negative([shape, dtype])

Convenience constraint for values that must be strictly negative (< 0).

Interval(lower, upper)

Represents a value strictly bounded between a lower and upper value.

GreaterThan(lower)

Represents a value strictly greater than a lower bound.

LessThan(upper)

Represents a value strictly less than an upper bound.

Functions

intersect(a, b)

Calculates the intersection of two constraints.