cubecl_core::frontend

Trait Abs

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

Provided Methods§

Source

fn abs(x: Self) -> Self

Source

fn __expand_abs( 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 Abs for f32

Source§

impl Abs for f64

Source§

impl Abs for i32

Source§

impl Abs for i64

Source§

impl Abs for u32

Source§

impl Abs for bf16

Source§

impl Abs for f16

Implementors§

Source§

impl<P: CubePrimitive + Abs> Abs for Line<P>