SumOps

Trait SumOps 

Source
pub trait SumOps<T, IS: Shape = (), D: Device = Self>: Device {
    // Required methods
    fn sum(&self, x: &Matrix<'_, T, D, IS>) -> T;
    fn mean(&self, x: &Matrix<'_, T, D, IS>) -> T;
}

Required Methods§

Source

fn sum(&self, x: &Matrix<'_, T, D, IS>) -> T

Source

fn mean(&self, x: &Matrix<'_, T, D, IS>) -> T

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: Number> SumOps<T> for OpenCL

Available on crate feature opencl only.
Source§

impl<T: Number, D: MainMemory, IS: Shape> SumOps<T, IS, D> for CPU

Available on crate feature cpu only.