Skip to main content

strided_gather

Function strided_gather 

Source
pub fn strided_gather<T: Copy>(
    x: &[T],
    out_shape: &[usize],
    src_strides: &[usize],
) -> Vec<T>
Expand description

The elements of x at sum(index[d] * src_strides[d]) for every index of out_shape, in row-major order: the positions advance by adding strides, and the innermost dimension is filled, copied, or gathered.