Trait cubecl_core::frontend::Int

source ·
pub trait Int: Numeric + Rem<Output = Self> + From<i32> + Add<i32, Output = Self> + Sub<i32, Output = Self> + Mul<i32, Output = Self> + Div<i32, Output = Self> + AddAssign<i32> + SubAssign<i32> + MulAssign<i32> + DivAssign<i32> + PartialOrd<i32> + PartialEq<i32> {
    // Required methods
    fn new(val: i64) -> Self;
    fn vectorized(val: i64, vectorization: UInt) -> Self;

    // Provided methods
    fn __expand_new(
        context: &mut CubeContext,
        val: Self::ExpandType,
    ) -> <Self as CubeType>::ExpandType { ... }
    fn __expand_vectorized(
        context: &mut CubeContext,
        val: Self::ExpandType,
        vectorization: UInt,
    ) -> <Self as CubeType>::ExpandType { ... }
}
Expand description

Signed integer. Used as input in int kernels

Required Methods§

source

fn new(val: i64) -> Self

source

fn vectorized(val: i64, vectorization: UInt) -> Self

Provided Methods§

source

fn __expand_new( context: &mut CubeContext, val: Self::ExpandType, ) -> <Self as CubeType>::ExpandType

source

fn __expand_vectorized( context: &mut CubeContext, val: Self::ExpandType, vectorization: UInt, ) -> <Self as CubeType>::ExpandType

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Int for I32

source§

impl Int for I64