[][src]Trait peroxide::traits::math::Vector

pub trait Vector {
    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<T: Into<f64>>(&self, rhs: T) -> Self; }

Mathematical Vector

Description

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

Required methods

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<T: Into<f64>>(&self, rhs: T) -> Self

Loading content...

Implementations on Foreign Types

impl Vector for Vec<Dual>[src]

impl Vector for Vec<f64>[src]

impl Vector for f64[src]

Loading content...

Implementors

impl Vector for Matrix[src]

Loading content...