pub struct CrdTranslateOperation<'c> { /* private fields */ }Expand description
A crd_translate operation. Performs coordinate translation between level and dimension coordinate space..
Performs coordinate translation between level and dimension coordinate space according to the affine maps defined by $encoder.
Example:
%l0, %l1, %l2, %l3 = sparse_tensor.crd_translate dim_to_lvl [%d0, %d1] as #BSR
: index, index, index, indexImplementations§
Source§impl<'c> CrdTranslateOperation<'c>
impl<'c> CrdTranslateOperation<'c>
Sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
Sourcepub fn builder(
context: &'c Context,
location: Location<'c>,
) -> CrdTranslateOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c>, ) -> CrdTranslateOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn out_crds(&self) -> impl Iterator<Item = OperationResult<'c, '_>>
pub fn in_crds(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn direction(&self) -> Result<Attribute<'c>, Error>
pub fn set_direction(&mut self, value: Attribute<'c>)
pub fn encoder(&self) -> Result<Attribute<'c>, Error>
pub fn set_encoder(&mut self, value: Attribute<'c>)
Trait Implementations§
Source§impl<'c> Clone for CrdTranslateOperation<'c>
impl<'c> Clone for CrdTranslateOperation<'c>
Source§fn clone(&self) -> CrdTranslateOperation<'c>
fn clone(&self) -> CrdTranslateOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for CrdTranslateOperation<'c>
impl<'c> Debug for CrdTranslateOperation<'c>
Source§impl<'b> From<CrdTranslateOperation<'b>> for SparseTensorDialectOperation<'b>
impl<'b> From<CrdTranslateOperation<'b>> for SparseTensorDialectOperation<'b>
Source§fn from(op: CrdTranslateOperation<'b>) -> Self
fn from(op: CrdTranslateOperation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<CrdTranslateOperation<'c>> for Operation<'c>
impl<'c> From<CrdTranslateOperation<'c>> for Operation<'c>
Source§fn from(operation: CrdTranslateOperation<'c>) -> Self
fn from(operation: CrdTranslateOperation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for CrdTranslateOperation<'c>
impl<'c> PartialEq for CrdTranslateOperation<'c>
Source§impl<'c> TryFrom<Operation<'c>> for CrdTranslateOperation<'c>
impl<'c> TryFrom<Operation<'c>> for CrdTranslateOperation<'c>
impl<'c> Eq for CrdTranslateOperation<'c>
impl<'c> StructuralPartialEq for CrdTranslateOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for CrdTranslateOperation<'c>
impl<'c> RefUnwindSafe for CrdTranslateOperation<'c>
impl<'c> !Send for CrdTranslateOperation<'c>
impl<'c> !Sync for CrdTranslateOperation<'c>
impl<'c> Unpin for CrdTranslateOperation<'c>
impl<'c> UnwindSafe for CrdTranslateOperation<'c>
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