ElementWise

Trait ElementWise 

Source
pub trait ElementWise<T, Params = ()>:
    Send
    + Sync
    + Debug
    + DynClone
where Params: Copy + Send + Sync + Debug + 'static + Default, T: Copy + Debug + PartialEq + Send + Sync,
{ // Required methods fn name(&self) -> &'static str; fn run_with_params( &self, vec: &mut [T], params: Params, ) -> Result<(), Error>; // Provided method fn run(&self, vec: &mut [T]) -> Result<(), Error> { ... } }

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn run_with_params(&self, vec: &mut [T], params: Params) -> Result<(), Error>

Provided Methods§

Source

fn run(&self, vec: &mut [T]) -> Result<(), Error>

Trait Implementations§

Source§

impl<'clone, T, Params> Clone for Box<dyn ElementWise<T, Params> + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn ElementWise<T, Params> + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone, T, Params> Clone for Box<dyn ElementWise<T, Params> + Send + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn ElementWise<T, Params> + Send + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone, T, Params> Clone for Box<dyn ElementWise<T, Params> + Sync + Send + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn ElementWise<T, Params> + Sync + Send + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone, T, Params> Clone for Box<dyn ElementWise<T, Params> + Sync + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn ElementWise<T, Params> + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<K, T> ElementWise<T, T> for ByScalarImpl<K, T>
where T: LADatum, K: ByScalarKer<T> + Clone,

Source§

impl<K, T, Params> ElementWise<T, Params> for ElementWiseImpl<K, T, Params>
where T: LADatum, Params: Copy + Send + Sync + Debug + 'static + Default, K: ElementWiseKer<T, Params> + Clone,