ScalarAssign

Trait ScalarAssign 

Source
pub trait ScalarAssign<T, S: Shape = (), D: Device = Self>: Device {
    // Required methods
    fn adds_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: T);
    fn muls_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: T);
    fn divs_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: T);
    fn subs_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: T);
}

Required Methods§

Source

fn adds_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: T)

Source

fn muls_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: T)

Source

fn divs_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: T)

Source

fn subs_assign(&self, lhs: &mut Matrix<'_, T, D, S>, rhs: 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, D: MainMemory, S: Shape> ScalarAssign<T, S, D> for CPU

Available on crate feature cpu only.
Source§

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

Available on crate feature opencl only.