cubecl_core::frontend

Trait Floor

Source
pub trait Floor: CubePrimitive + Sized {
    // Provided methods
    fn floor(x: Self) -> Self { ... }
    fn __expand_floor(
        context: &mut CubeContext,
        x: Self::ExpandType,
    ) -> ExpandElementTyped<Self> { ... }
}

Provided Methods§

Source

fn floor(x: Self) -> Self

Source

fn __expand_floor( context: &mut CubeContext, x: Self::ExpandType, ) -> ExpandElementTyped<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Floor for f32

Source§

impl Floor for f64

Source§

impl Floor for bf16

Source§

impl Floor for f16

Implementors§