NLA-lib Explorer

NLAlib.Ops.clampRoutine

Library · def

Clamp a word in place between two stored endpoints: [] (lo : 1, hi : 1, x : 1) → (x), the tree NLAlib.Ops.clamp with its input and its output on x; x is apart from the endpoints.

NLAlib.Ops.clampRoutine {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.CmpTst Tst] :
  Ops.Routine Op Tst

Full source on GitHub

Import NLAlib.Ops.Blas.Clamp.