ColOp

Trait ColOp 

Source
pub trait ColOp<T, D: Device = Self>: Device {
    // Required methods
    fn add_col(
        &self,
        lhs: &Matrix<'_, T, D>,
        rhs: &Matrix<'_, T, D>,
    ) -> Matrix<'_, T, Self>;
    fn sub_col(
        &self,
        lhs: &Matrix<'_, T, D>,
        rhs: &Matrix<'_, T, D>,
    ) -> Matrix<'_, T, Self>;
    fn div_col(
        &self,
        lhs: &Matrix<'_, T, D>,
        rhs: &Matrix<'_, T, D>,
    ) -> Matrix<'_, T, Self>;
}

Required Methods§

Source

fn add_col( &self, lhs: &Matrix<'_, T, D>, rhs: &Matrix<'_, T, D>, ) -> Matrix<'_, T, Self>

Source

fn sub_col( &self, lhs: &Matrix<'_, T, D>, rhs: &Matrix<'_, T, D>, ) -> Matrix<'_, T, Self>

Source

fn div_col( &self, lhs: &Matrix<'_, T, D>, rhs: &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: Number, D: MainMemory> ColOp<T, D> for CPU

Available on crate feature cpu only.
Source§

impl<T: CDatatype> ColOp<T> for OpenCL

Available on crate feature opencl only.