Trait OpProdAPI

Source
pub trait OpProdAPI<T, D>
where D: DimAPI, Self: DeviceAPI<T>,
{ // Required methods fn prod_all(&self, a: &Self::Raw, la: &Layout<D>) -> Result<T>; fn prod( &self, a: &Self::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Self::Raw>, T, Self>, Layout<IxD>)>; }

Required Methods§

Source

fn prod_all(&self, a: &Self::Raw, la: &Layout<D>) -> Result<T>

Source

fn prod( &self, a: &Self::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Self::Raw>, T, Self>, Layout<IxD>)>

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> OpProdAPI<T, D> for DeviceCpuSerial
where T: Clone + One + Mul<Output = T>, D: DimAPI,

Source§

impl<T, D> OpProdAPI<T, D> for DeviceFaer
where T: Clone + Send + Sync + One + Mul<Output = T>, D: DimAPI,