[][src]Trait lll_rs::vector::Vector

pub trait Vector {
    fn dimension(&self) -> usize;
fn add(&self, other: &Self) -> Self;
fn sub(&self, other: &Self) -> Self;
fn init(dimension: usize) -> Self;
fn basis_vector(&self, position: usize) -> Self; }

The Vector trait describes the general properties of an element in a vector space.

Required methods

fn dimension(&self) -> usize

Returns the vector's dimension

fn add(&self, other: &Self) -> Self

Add two vectors together

fn sub(&self, other: &Self) -> Self

Substract two vectors

fn init(dimension: usize) -> Self

Initialise vector type

fn basis_vector(&self, position: usize) -> Self

Basis vector

Loading content...

Implementors

impl Vector for BigVector[src]

impl Vector for RationalVector[src]

impl Vector for VectorF[src]

Loading content...