pub trait BinaryArrayOperator {
// Required methods
fn act(
&self,
arg_one: ArrayView1<'_, R32>,
arg_two: ArrayView1<'_, R32>,
) -> Array1<R32>;
fn get_name(&self) -> String;
}Expand description
Trait to ease implementation of primitive binary operators which have identical argument types
and return type. To be used in tandem with BinaryFuncImpl.
Required Methods§
Sourcefn act(
&self,
arg_one: ArrayView1<'_, R32>,
arg_two: ArrayView1<'_, R32>,
) -> Array1<R32>
fn act( &self, arg_one: ArrayView1<'_, R32>, arg_two: ArrayView1<'_, R32>, ) -> Array1<R32>
Given two arrays of equal dimension, act to yield an array of the same number of dimensions.