OpAssignArbitaryAPI

Trait OpAssignArbitaryAPI 

Source
pub trait OpAssignArbitaryAPI<TC, DC, DA, TA = TC>
where DC: DimAPI, DA: DimAPI, Self: DeviceRawAPI<TA> + DeviceRawAPI<TC> + DeviceRawAPI<MaybeUninit<TC>>,
{ // Required methods fn assign_arbitary( &self, c: &mut <Self as DeviceRawAPI<TC>>::Raw, lc: &Layout<DC>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<DA>, ) -> Result<()>; fn assign_arbitary_uninit( &self, c: &mut <Self as DeviceRawAPI<MaybeUninit<TC>>>::Raw, lc: &Layout<DC>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<DA>, ) -> Result<()>; }

Required Methods§

Source

fn assign_arbitary( &self, c: &mut <Self as DeviceRawAPI<TC>>::Raw, lc: &Layout<DC>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<DA>, ) -> Result<()>

Element-wise assignment in col-major order, without no promise that input layouts are broadcastable.

Source

fn assign_arbitary_uninit( &self, c: &mut <Self as DeviceRawAPI<MaybeUninit<TC>>>::Raw, lc: &Layout<DC>, a: &<Self as DeviceRawAPI<TA>>::Raw, la: &Layout<DA>, ) -> Result<()>

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<TC, DC, DA, TA> OpAssignArbitaryAPI<TC, DC, DA, TA> for DeviceCpuSerial
where TC: Clone, TA: Clone + DTypeCastAPI<TC>, DC: DimAPI, DA: DimAPI,

Source§

impl<TC, TA, DC, DA> OpAssignArbitaryAPI<TC, DC, DA, TA> for DeviceFaer
where TC: Clone + Send + Sync, TA: Clone + Send + Sync + DTypeCastAPI<TC>, DC: DimAPI, DA: DimAPI,