Skip to main content

clamp

Function clamp 

Source
pub fn clamp<B: Backend, T: Num>(
    lo: &Array<B, T>,
    x: &Array<B, T>,
    hi: &Array<B, T>,
) -> Array<B, T>
Expand description

clamp(lo, x, hi): bounds are scalars or of the shape of x; propagates NaN.