DeviceIndexSelectAPI

Trait DeviceIndexSelectAPI 

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

Required Methods§

Source

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

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 DeviceCpuSerial
where T: Clone, D: DimAPI + DimSmallerOneAPI, D::SmallerOne: DimAPI,

Source§

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