Trait cubecl_core::frontend::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>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Abs for BF16

source§

impl Abs for F16

source§

impl Abs for F32

source§

impl Abs for F64

source§

impl Abs for I32

source§

impl Abs for I64

source§

impl Abs for UInt