pub fn clip(x: &mut [f64], lo: &[f64], hi: &[f64], has_box: bool)
Clip x into [lo, hi] when a finite box is known (no-op otherwise).
x
[lo, hi]