Skip to main content

clip

Function clip 

Source
pub fn clip(x: &mut [f64], lo: &[f64], hi: &[f64], has_box: bool)
Expand description

Clip x into [lo, hi] when a finite box is known (no-op otherwise).