copy_bulk

Function copy_bulk 

Source
pub fn copy_bulk<C>(
    _from: &Slice<C>,
    _from_index: usize,
    _to: &mut Slice<C, ReadWrite>,
    _to_index: usize,
    _length: usize,
)
where C: CubePrimitive,
Expand description

Bulk copy length elements between two array-likes without intermediates.

§Arguments

from - The array/tensor/shared memory to copy from from_index - The from index to start the copy from to - The array/tensor/shared memory to copy to to_index - The to index to copy the elements to

§Example

copy_bulk(input.as_slice(), idx, shared, shared_idx, 16);