Skip to main content

LlvmTensor

Struct LlvmTensor 

Source
pub struct LlvmTensor<D: Dtype>(pub *mut D);
Expand description

super::LlvmTriton’s dummy Tensor type: a raw pointer wrapper, always null in practice (see super::LlvmTriton’s docs).

Tuple Fields§

§0: *mut D

Trait Implementations§

Source§

impl<D: Dtype> Add for LlvmTensor<D>

Source§

type Output = LlvmTensor<D>

The resulting type after applying the + operator.
Source§

fn add(self, _rhs: LlvmTensor<D>) -> Self::Output

Performs the + operation. Read more
Source§

impl<D: Dtype, const RANK: usize> AddOffsets<i32, RANK, LlvmTensor<i32>> for LlvmPointer<D>

Source§

type Output = LlvmTensor<LlvmPointer<D>>

The result of adding offsets.
Source§

fn add_offsets(self, _offsets: LlvmI32Tensor) -> Self::Output

Adds offsets to self.
Source§

impl<D: Dtype> Clone for LlvmTensor<D>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<D: Num> Comparison<D> for LlvmTensor<D>

Source§

type BoolTensor = LlvmTensor<bool>

The boolean-valued tensor type produced by these comparisons.
Source§

fn lt(self, _other: D) -> Self::BoolTensor

Element-wise less-than.
Source§

fn le(self, _other: D) -> Self::BoolTensor

Element-wise less-than-or-equal.
Source§

fn gt(self, _other: D) -> Self::BoolTensor

Element-wise greater-than.
Source§

fn ge(self, _other: D) -> Self::BoolTensor

Element-wise greater-than-or-equal.
Source§

fn eq(self, _other: D) -> Self::BoolTensor

Element-wise equality.
Source§

fn ne(self, _other: D) -> Self::BoolTensor

Element-wise inequality.
Source§

impl<D: Num> Comparison for LlvmTensor<D>

Source§

type BoolTensor = LlvmTensor<bool>

The boolean-valued tensor type produced by these comparisons.
Source§

fn lt(self, _other: LlvmTensor<D>) -> Self::BoolTensor

Element-wise less-than.
Source§

fn le(self, _other: LlvmTensor<D>) -> Self::BoolTensor

Element-wise less-than-or-equal.
Source§

fn gt(self, _other: LlvmTensor<D>) -> Self::BoolTensor

Element-wise greater-than.
Source§

fn ge(self, _other: LlvmTensor<D>) -> Self::BoolTensor

Element-wise greater-than-or-equal.
Source§

fn eq(self, _other: LlvmTensor<D>) -> Self::BoolTensor

Element-wise equality.
Source§

fn ne(self, _other: LlvmTensor<D>) -> Self::BoolTensor

Element-wise inequality.
Source§

impl<D: Dtype> Div for LlvmTensor<D>

Source§

type Output = LlvmTensor<D>

The resulting type after applying the / operator.
Source§

fn div(self, _rhs: LlvmTensor<D>) -> Self::Output

Performs the / operation. Read more
Source§

impl<D: Dtype> Mul for LlvmTensor<D>

Source§

type Output = LlvmTensor<D>

The resulting type after applying the * operator.
Source§

fn mul(self, _rhs: LlvmTensor<D>) -> Self::Output

Performs the * operation. Read more
Source§

impl<D: Dtype> Neg for LlvmTensor<D>

Source§

type Output = LlvmTensor<D>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<D: Dtype, const RANK: usize> RankedTensor<D, RANK> for LlvmTensor<D>

Source§

const SHAPE: [usize; RANK]

This tensor’s shape.
Source§

impl<D: Dtype> Sub for LlvmTensor<D>

Source§

type Output = LlvmTensor<D>

The resulting type after applying the - operator.
Source§

fn sub(self, _rhs: LlvmTensor<D>) -> Self::Output

Performs the - operation. Read more
Source§

impl<D: Dtype> Copy for LlvmTensor<D>

Source§

impl<D: Dtype, const RANK: usize> Tensor<D, RANK> for LlvmTensor<D>

Auto Trait Implementations§

§

impl<D> Freeze for LlvmTensor<D>

§

impl<D> RefUnwindSafe for LlvmTensor<D>
where D: RefUnwindSafe,

§

impl<D> !Send for LlvmTensor<D>

§

impl<D> !Sync for LlvmTensor<D>

§

impl<D> Unpin for LlvmTensor<D>

§

impl<D> UnsafeUnpin for LlvmTensor<D>

§

impl<D> UnwindSafe for LlvmTensor<D>
where D: RefUnwindSafe,

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<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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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>,

Source§

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.