[][src]Trait matrixlab::vector::VectorTrait

pub trait VectorTrait<A> {
    fn add(&self, other: &Vector<A>) -> Vector<A>;
fn sub(&self, other: &Vector<A>) -> Vector<A>;
fn scale(&self, scale: A) -> Vector<A>;
fn inner(&self, other: &Vector<A>) -> A; }

Required methods

fn add(&self, other: &Vector<A>) -> Vector<A>

Adds two vectors together

fn sub(&self, other: &Vector<A>) -> Vector<A>

Subtracts a vector from another

fn scale(&self, scale: A) -> Vector<A>

Scales the current vector by a constant

fn inner(&self, other: &Vector<A>) -> A

Takes the inner product of this vector and another

Loading content...

Implementors

impl<A: MatrixElement + Mul<Output = A> + Add<Output = A> + Sub<Output = A> + Default> VectorTrait<A> for Vector<A>[src]

Loading content...