pub struct DynamicSlicePlan { /* private fields */ }Expand description
A compiled fixed-window dynamic-slice traversal.
Implementations§
Source§impl DynamicSlicePlan
impl DynamicSlicePlan
Sourcepub fn compile(
operand_dims: &[usize],
operand_strides: &[isize],
start_dims: &[usize],
start_strides: &[isize],
dest_dims: &[usize],
dest_strides: &[isize],
slice_sizes: &[usize],
) -> Result<Self>
pub fn compile( operand_dims: &[usize], operand_strides: &[isize], start_dims: &[usize], start_strides: &[isize], dest_dims: &[usize], dest_strides: &[isize], slice_sizes: &[usize], ) -> Result<Self>
Compile a fixed-window dynamic-slice traversal.
start_* describes a rank-1 index vector whose length equals the
operand rank. dest_dims must equal slice_sizes.
Sourcepub fn execute<T, I>(
&self,
dest: &mut RawStridedMut<'_, T>,
operand: &RawStridedRef<'_, T>,
starts: &RawStridedRef<'_, I>,
) -> Result<()>
pub fn execute<T, I>( &self, dest: &mut RawStridedMut<'_, T>, operand: &RawStridedRef<'_, T>, starts: &RawStridedRef<'_, I>, ) -> Result<()>
Execute the prepared dynamic-slice traversal.
Trait Implementations§
Source§impl Clone for DynamicSlicePlan
impl Clone for DynamicSlicePlan
Source§fn clone(&self) -> DynamicSlicePlan
fn clone(&self) -> DynamicSlicePlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DynamicSlicePlan
impl RefUnwindSafe for DynamicSlicePlan
impl Send for DynamicSlicePlan
impl Sync for DynamicSlicePlan
impl Unpin for DynamicSlicePlan
impl UnsafeUnpin for DynamicSlicePlan
impl UnwindSafe for DynamicSlicePlan
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