linalg:clip
(linalg:clip a lo hi)
Returns a fresh array with every element limited to the [lo, hi] interval (numpy's np.clip with scalar bounds), defined as the composition (linalg:minimum (linalg:maximum a lo) hi). Two consequences of that definition: a NaN element becomes lo (the first comparison is false, so the bound wins), and inverted bounds (lo > hi) send every element to hi. Rides the linalg:maximum / linalg:minimum kernels under --simd.