Struct cubecl_core::frontend::I64

source ·
pub struct I64 {
    pub val: i64,
    pub vectorization: u8,
}

Fields§

§val: i64§vectorization: u8

Trait Implementations§

source§

impl Abs for I64

source§

fn abs(x: Self) -> Self

source§

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

source§

impl Add<i32> for I64

§

type Output = I64

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for I64

§

type Output = I64

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add for I64

§

type Output = I64

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<i32> for I64

source§

fn add_assign(&mut self, _rhs: i32)

Performs the += operation. Read more
source§

impl AddAssign<u32> for I64

source§

fn add_assign(&mut self, _rhs: u32)

Performs the += operation. Read more
source§

impl AddAssign for I64

source§

fn add_assign(&mut self, _rhs: Self)

Performs the += operation. Read more
source§

impl Clamp for I64

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

source§

impl Clone for I64

source§

fn clone(&self) -> I64

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ComptimeType for I64

source§

fn into_expand(self) -> Self::ExpandType

Create the expand type from the normal type.
source§

impl CubePrimitive for I64

source§

fn as_elem() -> Elem

Return the element type to use on GPU
source§

fn from_expand_elem(elem: ExpandElement) -> Self::ExpandType

source§

impl CubeType for I64

§

type ExpandType = ExpandElementTyped<I64>

source§

fn init(context: &mut CubeContext, expand: Self::ExpandType) -> Self::ExpandType

Wrapper around the init method, necessary to type inference.
source§

impl Div<i32> for I64

§

type Output = I64

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u32> for I64

§

type Output = I64

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div for I64

§

type Output = I64

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<i32> for I64

source§

fn div_assign(&mut self, _rhs: i32)

Performs the /= operation. Read more
source§

impl DivAssign<u32> for I64

source§

fn div_assign(&mut self, _rhs: u32)

Performs the /= operation. Read more
source§

impl DivAssign for I64

source§

fn div_assign(&mut self, _rhs: Self)

Performs the /= operation. Read more
source§

impl ExpandElementBaseInit for I64

source§

impl From<I64> for ExpandElement

source§

fn from(value: I64) -> Self

Converts to this type from the input type.
source§

impl From<I64> for ExpandElementTyped<UInt>

source§

fn from(value: I64) -> Self

Converts to this type from the input type.
source§

impl From<i32> for I64

source§

fn from(val: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for I64

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<u32> for I64

source§

fn from(val: u32) -> Self

Converts to this type from the input type.
source§

impl Hash for I64

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Index<UInt> for I64

§

type Output = I64

The returned type after indexing.
source§

fn index(&self, _index: UInt) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl Index<u32> for I64

§

type Output = I64

The returned type after indexing.
source§

fn index(&self, _index: u32) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<UInt> for I64

source§

fn index_mut(&mut self, _index: UInt) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl IndexMut<u32> for I64

source§

fn index_mut(&mut self, _index: u32) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl Int for I64

source§

fn new(val: i64) -> Self

source§

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

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

source§

impl LaunchArgExpand for I64

source§

fn expand( builder: &mut KernelBuilder, vectorization: Vectorization, ) -> ExpandElementTyped<Self>

Register an input variable during compilation that fill the KernelBuilder.
source§

fn expand_output( builder: &mut KernelBuilder, vectorization: Vectorization, ) -> <Self as CubeType>::ExpandType

Register an output variable during compilation that fill the KernelBuilder.
source§

impl Max for I64

source§

fn max(self, _rhs: Self) -> Self

source§

fn __expand_max( context: &mut CubeContext, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>

source§

impl Min for I64

source§

fn min(self, _rhs: Self) -> Self

source§

fn __expand_min( context: &mut CubeContext, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>

source§

impl Mul<i32> for I64

§

type Output = I64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u32> for I64

§

type Output = I64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for I64

§

type Output = I64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<i32> for I64

source§

fn mul_assign(&mut self, _rhs: i32)

Performs the *= operation. Read more
source§

impl MulAssign<u32> for I64

source§

fn mul_assign(&mut self, _rhs: u32)

Performs the *= operation. Read more
source§

impl MulAssign for I64

source§

fn mul_assign(&mut self, _rhs: Self)

Performs the *= operation. Read more
source§

impl Numeric for I64

§

type Primitive = i64

source§

fn from_int(_val: u32) -> Self

Create a new constant numeric. Read more
source§

fn from_vec<const D: usize>(_vec: [u32; D]) -> Self

source§

fn __expand_from_int( _context: &mut CubeContext, val: ExpandElementTyped<I64>, ) -> <Self as CubeType>::ExpandType

source§

fn __expand_from_vec<const D: usize>( context: &mut CubeContext, vec: [ExpandElementTyped<UInt>; D], ) -> <Self as CubeType>::ExpandType

source§

impl PartialEq<i32> for I64

source§

fn eq(&self, rhs: &i32) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u32> for I64

source§

fn eq(&self, rhs: &u32) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for I64

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<i32> for I64

source§

fn partial_cmp(&self, rhs: &i32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u32> for I64

source§

fn partial_cmp(&self, rhs: &u32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd for I64

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Rem for I64

§

type Output = I64

The resulting type after applying the % operator.
source§

fn rem(self, _rhs: Self) -> Self::Output

Performs the % operation. Read more
source§

impl Remainder for I64

source§

fn rem(self, _rhs: Self) -> Self

source§

fn __expand_rem( context: &mut CubeContext, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> ExpandElementTyped<Self>

source§

impl Sub<i32> for I64

§

type Output = I64

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for I64

§

type Output = I64

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for I64

§

type Output = I64

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<i32> for I64

source§

fn sub_assign(&mut self, _rhs: i32)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for I64

source§

fn sub_assign(&mut self, _rhs: u32)

Performs the -= operation. Read more
source§

impl SubAssign for I64

source§

fn sub_assign(&mut self, _rhs: Self)

Performs the -= operation. Read more
source§

impl Vectorized for I64

source§

fn vectorization_factor(&self) -> UInt

source§

fn vectorize(self, factor: UInt) -> Self

source§

impl Copy for I64

source§

impl Eq for I64

Auto Trait Implementations§

§

impl Freeze for I64

§

impl RefUnwindSafe for I64

§

impl Send for I64

§

impl Sync for I64

§

impl Unpin for I64

§

impl UnwindSafe for I64

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<P> BitCast for P
where P: CubePrimitive,

source§

fn bitcast_from<From: CubePrimitive>(value: From) -> Self

Reinterpret the bits of another primitive as this primitive without conversion.
source§

fn __expand_bitcast_from<From>( context: &mut CubeContext, value: From, ) -> <Self as CubeType>::ExpandType
where From: Into<ExpandElement>,

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<P> Cast for P
where P: CubePrimitive,

source§

fn cast_from<From>(_value: From) -> P
where From: CubePrimitive,

source§

fn __expand_cast_from<From>( context: &mut CubeContext, value: From, ) -> <Self as CubeType>::ExpandType
where From: Into<ExpandElement>,

source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> LaunchArg for T
where T: Numeric,

§

type RuntimeArg<'a, R: Runtime> = ScalarArg<T>

The runtime argument for the kernel.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,