Skip to main content

clamp

Function clamp 

Source
pub fn clamp<T: Element>(lo: &[T], x: &[T], hi: &[T]) -> Vec<T>
Expand description

clamp(lo, x, hi), propagating NaN; lo and hi are scalars or have the shape of x.