OpSumAPI

Trait OpSumAPI 

Source
pub trait OpSumAPI<T, D>: DeviceAPI<T> + DeviceAPI<Self::TOut>
where D: DimAPI,
{ type TOut; // Required methods fn sum_all( &self, a: &Self::Raw, la: &Layout<D>, ) -> Result<Self::TOut, Error>; fn sum_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 sum_all(&self, a: &Self::Raw, la: &Layout<D>) -> Result<Self::TOut, Error>

Source

fn sum_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> OpSumAPI<T, D> for DeviceOpenBLAS
where T: Clone + Send + Sync + Zero + Add<Output = T>, D: DimAPI,

Source§

type TOut = T

Source§

impl<T, D> OpSumAPI<T, D> for DeviceCpuSerial
where T: Zero<Output = T> + Add + Clone, D: DimAPI,

Source§

type TOut = T