DeviceIndexSelectAPI

Trait DeviceIndexSelectAPI 

Source
pub trait DeviceIndexSelectAPI<T, D>: DeviceAPI<T> + DeviceRawAPI<MaybeUninit<T>>
where D: DimAPI + DimSmallerOneAPI, <D as DimSmallerOneAPI>::SmallerOne: DimAPI,
{ // Required method fn index_select( &self, c: &mut Self::Raw, lc: &Layout<D>, a: &Self::Raw, la: &Layout<D>, axis: usize, indices: &[usize], ) -> Result<(), Error>; }

Required Methods§

Source

fn index_select( &self, c: &mut Self::Raw, lc: &Layout<D>, a: &Self::Raw, la: &Layout<D>, axis: usize, indices: &[usize], ) -> Result<(), Error>

Index select on one axis.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, D> DeviceIndexSelectAPI<T, D> for DeviceOpenBLAS
where T: Clone + Send + Sync, D: DimAPI + DimSmallerOneAPI, D::SmallerOne: DimAPI,

Source§

impl<T, D> DeviceIndexSelectAPI<T, D> for DeviceCpuSerial
where T: Clone, D: DimAPI + DimSmallerOneAPI, <D as DimSmallerOneAPI>::SmallerOne: DimAPI,