Trait rustml::ops::VectorVectorOps [] [src]

pub trait VectorVectorOps<T> {
    fn sub(&self, rhs: &[T]) -> Vec<T>;
    fn add(&self, rhs: &[T]) -> Vec<T>;
    fn mul(&self, rhs: &[T]) -> Vec<T>;
    fn div(&self, rhs: &[T]) -> Vec<T>;
    fn mutate<F>(&self, f: F) -> Vec<T> where F: Fn(T) -> T;
    fn col_mul_row(&self, rhs: &[T]) -> Matrix<T>;
}

Trait for vector vector operations.

Required Methods

fn sub(&self, rhs: &[T]) -> Vec<T>

fn add(&self, rhs: &[T]) -> Vec<T>

fn mul(&self, rhs: &[T]) -> Vec<T>

Element wise multiplication.

fn div(&self, rhs: &[T]) -> Vec<T>

fn mutate<F>(&self, f: F) -> Vec<T> where F: Fn(T) -> T

fn col_mul_row(&self, rhs: &[T]) -> Matrix<T>

Implementors