pub trait SumOverOps<T, IS: Shape = (), OS: Shape = (), D: Device = Self>: Device {
// Required methods
fn sum_rows(&self, x: &Matrix<'_, T, D, IS>) -> Matrix<'_, T, Self, OS>;
fn sum_cols(&self, x: &Matrix<'_, T, D, IS>) -> Matrix<'_, T, Self, OS>;
}Required Methods§
fn sum_rows(&self, x: &Matrix<'_, T, D, IS>) -> Matrix<'_, T, Self, OS>
fn sum_cols(&self, x: &Matrix<'_, T, D, IS>) -> Matrix<'_, T, Self, OS>
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§
impl<T: CDatatype> SumOverOps<T> for OpenCL
Available on crate feature
opencl only.impl<T: Copy + Default + AddAssign, D: MainMemory, IS: Shape, OS: Shape> SumOverOps<T, IS, OS, D> for CPU
Available on crate feature
cpu only.