pub struct ExtractOperation<'c> { /* private fields */ }
Expand description
An extract
operation. Extract operation.
Takes an n-D vector and a k-D position and extracts the (n-k)-D vector at the proper position. Degenerates to an element type if n-k is zero.
Example:
%1 = vector.extract %0[3]: vector<4x8x16xf32>
%2 = vector.extract %0[3, 3, 3]: vector<4x8x16xf32>
%3 = vector.extract %1[]: vector<f32>
Implementations§
source§impl<'c> ExtractOperation<'c>
impl<'c> ExtractOperation<'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>
) -> ExtractOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ExtractOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn vector(&self) -> Result<Value<'c, '_>, Error>
pub fn position(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_position(&mut self, value: ArrayAttribute<'c>)
Trait Implementations§
source§impl<'c> From<ExtractOperation<'c>> for Operation<'c>
impl<'c> From<ExtractOperation<'c>> for Operation<'c>
source§fn from(operation: ExtractOperation<'c>) -> Self
fn from(operation: ExtractOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ExtractOperation<'c>
impl<'c> !Send for ExtractOperation<'c>
impl<'c> !Sync for ExtractOperation<'c>
impl<'c> Unpin for ExtractOperation<'c>
impl<'c> UnwindSafe for ExtractOperation<'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