Trait rustlearn::array::traits::ElementwiseArrayOps [] [src]

pub trait ElementwiseArrayOps<Rhs> {
    type Output;
    fn add(&self, rhs: Rhs) -> Self::Output;
    fn add_inplace(&mut self, rhs: Rhs);
    fn sub(&self, rhs: Rhs) -> Self::Output;
    fn sub_inplace(&mut self, rhs: Rhs);
    fn times(&self, rhs: Rhs) -> Self::Output;
    fn times_inplace(&mut self, rhs: Rhs);
    fn div(&self, rhs: Rhs) -> Self::Output;
    fn div_inplace(&mut self, rhs: Rhs);
}

Elementwise array operations trait.

Associated Types

type Output

Required Methods

fn add(&self, rhs: Rhs) -> Self::Output

fn add_inplace(&mut self, rhs: Rhs)

fn sub(&self, rhs: Rhs) -> Self::Output

fn sub_inplace(&mut self, rhs: Rhs)

fn times(&self, rhs: Rhs) -> Self::Output

fn times_inplace(&mut self, rhs: Rhs)

fn div(&self, rhs: Rhs) -> Self::Output

fn div_inplace(&mut self, rhs: Rhs)

Implementors