MaxOps

Trait MaxOps 

Source
pub trait MaxOps<T, D: Device = Self>: Device {
    // Required methods
    fn max(&self, x: &Matrix<'_, T, D>) -> T;
    fn max_rows(&self, x: &Matrix<'_, T, D>) -> Matrix<'_, T, Self>;
    fn max_cols(&self, x: &Matrix<'_, T, D>) -> Matrix<'_, T, Self>;
}

Required Methods§

Source

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

Source

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

Source

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

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: CDatatype> MaxOps<T> for OpenCL

Available on crate feature opencl only.
Source§

impl<T: Copy + PartialOrd, D: MainMemory> MaxOps<T, D> for CPU

Available on crate feature cpu only.