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 DTrait Implementations§
Source§impl<D: Dtype> Add for LlvmTensor<D>
impl<D: Dtype> Add for LlvmTensor<D>
Source§type Output = LlvmTensor<D>
type Output = LlvmTensor<D>
The resulting type after applying the
+ operator.Source§impl<D: Dtype, const RANK: usize> AddOffsets<i32, RANK, LlvmTensor<i32>> for LlvmPointer<D>
impl<D: Dtype, const RANK: usize> AddOffsets<i32, RANK, LlvmTensor<i32>> for LlvmPointer<D>
Source§type Output = LlvmTensor<LlvmPointer<D>>
type Output = LlvmTensor<LlvmPointer<D>>
The result of adding offsets.
Source§fn add_offsets(self, _offsets: LlvmI32Tensor) -> Self::Output
fn add_offsets(self, _offsets: LlvmI32Tensor) -> Self::Output
Adds
offsets to self.Source§impl<D: Dtype> Clone for LlvmTensor<D>
impl<D: Dtype> Clone for LlvmTensor<D>
Source§impl<D: Num> Comparison<D> for LlvmTensor<D>
impl<D: Num> Comparison<D> for LlvmTensor<D>
Source§type BoolTensor = LlvmTensor<bool>
type BoolTensor = LlvmTensor<bool>
The boolean-valued tensor type produced by these comparisons.
Source§fn lt(self, _other: D) -> Self::BoolTensor
fn lt(self, _other: D) -> Self::BoolTensor
Element-wise less-than.
Source§fn le(self, _other: D) -> Self::BoolTensor
fn le(self, _other: D) -> Self::BoolTensor
Element-wise less-than-or-equal.
Source§fn gt(self, _other: D) -> Self::BoolTensor
fn gt(self, _other: D) -> Self::BoolTensor
Element-wise greater-than.
Source§fn ge(self, _other: D) -> Self::BoolTensor
fn ge(self, _other: D) -> Self::BoolTensor
Element-wise greater-than-or-equal.
Source§fn eq(self, _other: D) -> Self::BoolTensor
fn eq(self, _other: D) -> Self::BoolTensor
Element-wise equality.
Source§fn ne(self, _other: D) -> Self::BoolTensor
fn ne(self, _other: D) -> Self::BoolTensor
Element-wise inequality.
Source§impl<D: Num> Comparison for LlvmTensor<D>
impl<D: Num> Comparison for LlvmTensor<D>
Source§type BoolTensor = LlvmTensor<bool>
type BoolTensor = LlvmTensor<bool>
The boolean-valued tensor type produced by these comparisons.
Source§fn lt(self, _other: LlvmTensor<D>) -> Self::BoolTensor
fn lt(self, _other: LlvmTensor<D>) -> Self::BoolTensor
Element-wise less-than.
Source§fn le(self, _other: LlvmTensor<D>) -> Self::BoolTensor
fn le(self, _other: LlvmTensor<D>) -> Self::BoolTensor
Element-wise less-than-or-equal.
Source§fn gt(self, _other: LlvmTensor<D>) -> Self::BoolTensor
fn gt(self, _other: LlvmTensor<D>) -> Self::BoolTensor
Element-wise greater-than.
Source§fn ge(self, _other: LlvmTensor<D>) -> Self::BoolTensor
fn ge(self, _other: LlvmTensor<D>) -> Self::BoolTensor
Element-wise greater-than-or-equal.
Source§fn eq(self, _other: LlvmTensor<D>) -> Self::BoolTensor
fn eq(self, _other: LlvmTensor<D>) -> Self::BoolTensor
Element-wise equality.
Source§fn ne(self, _other: LlvmTensor<D>) -> Self::BoolTensor
fn ne(self, _other: LlvmTensor<D>) -> Self::BoolTensor
Element-wise inequality.
Source§impl<D: Dtype> Div for LlvmTensor<D>
impl<D: Dtype> Div for LlvmTensor<D>
Source§type Output = LlvmTensor<D>
type Output = LlvmTensor<D>
The resulting type after applying the
/ operator.Source§impl<D: Dtype> Mul for LlvmTensor<D>
impl<D: Dtype> Mul for LlvmTensor<D>
Source§type Output = LlvmTensor<D>
type Output = LlvmTensor<D>
The resulting type after applying the
* operator.Source§impl<D: Dtype> Neg for LlvmTensor<D>
impl<D: Dtype> Neg for LlvmTensor<D>
Source§impl<D: Dtype, const RANK: usize> RankedTensor<D, RANK> for LlvmTensor<D>
impl<D: Dtype, const RANK: usize> RankedTensor<D, RANK> for LlvmTensor<D>
Source§impl<D: Dtype> Sub for LlvmTensor<D>
impl<D: Dtype> Sub for LlvmTensor<D>
Source§type Output = LlvmTensor<D>
type Output = LlvmTensor<D>
The resulting type after applying the
- operator.impl<D: Dtype> Copy for LlvmTensor<D>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more