pub trait Vector {
    type Scalar;
    fn add_vec<'a, 'b>(&'a self, rhs: &'b Self) -> Self;
fn sub_vec<'a, 'b>(&'a self, rhs: &'b Self) -> Self;
fn mul_scalar(&self, rhs: Self::Scalar) -> Self; }
Expand description

Mathematical Vector

Description

Vector has two operations : addition, scalar multiplication. And a space of the vector should closed for that operations.

Associated Types

Required methods

Implementations on Foreign Types

Implementors