NLA-lib Explorer

NLAlib.Ops.clampWord

Library · def

Select the stored lower endpoint below the interval, the upper endpoint above it, and the input otherwise. Numerical endpoint order is only needed for interval interpretations.

NLAlib.Ops.clampWord {K : Type} (dec : K → ℝ) (lo hi x : K) : K

Full source on GitHub

Import NLAlib.Ops.Blas.Clamp.