Trait cubecl_core::frontend::Clamp

source ·
pub trait Clamp: CubePrimitive + Sized {
    // Provided methods
    fn clamp(input: Self, min_value: Self, max_value: Self) -> Self { ... }
    fn __expand_clamp(
        context: &mut CubeContext,
        input: Self::ExpandType,
        min_value: Self::ExpandType,
        max_value: Self::ExpandType,
    ) -> Self::ExpandType { ... }
}

Provided Methods§

source

fn clamp(input: Self, min_value: Self, max_value: Self) -> Self

Clamp the input value between the max and min values provided.

source

fn __expand_clamp( context: &mut CubeContext, input: Self::ExpandType, min_value: Self::ExpandType, max_value: Self::ExpandType, ) -> Self::ExpandType

Object Safety§

This trait is not object safe.

Implementors§