OpProdAPI

Trait OpProdAPI 

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

Required Associated Types§

Required Methods§

Source

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

Source

fn prod_axes( &self, a: &Self::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<Self::Raw>, Self::TOut, Self>, Layout<Vec<usize>>), Error>

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 DeviceOpenBLAS
where T: Clone + Send + Sync + One + Mul<Output = T>, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

type TOut = T