OpSumAPI

Trait OpSumAPI 

Source
pub trait OpSumAPI<T, D>
where D: DimAPI, Self: DeviceAPI<T> + DeviceAPI<Self::TOut>,
{ type TOut; // Required methods fn sum_all( &self, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, ) -> Result<Self::TOut>; fn sum_axes( &self, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<<Self as DeviceRawAPI<Self::TOut>>::Raw>, Self::TOut, Self>, Layout<IxD>)>; }

Required Associated Types§

Required Methods§

Source

fn sum_all( &self, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, ) -> Result<Self::TOut>

Source

fn sum_axes( &self, a: &<Self as DeviceRawAPI<T>>::Raw, la: &Layout<D>, axes: &[isize], ) -> Result<(Storage<DataOwned<<Self as DeviceRawAPI<Self::TOut>>::Raw>, Self::TOut, 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> OpSumAPI<T, D> for DeviceCpuSerial
where T: Zero + Add<Output = T> + Clone, D: DimAPI,

Source§

type TOut = T

Source§

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

Source§

type TOut = T