[][src]Trait peroxide::structure::vector::VecOps

pub trait VecOps {
    type Scalar;
    fn add(&self, other: &Self) -> Self;
fn sub(&self, other: &Self) -> Self;
fn mul(&self, other: &Self) -> Self;
fn div(&self, other: &Self) -> Self;
fn dot(&self, other: &Self) -> Self::Scalar;
fn norm(&self) -> Self::Scalar; }

Convenient Vector Operation trait

Associated Types

type Scalar

Loading content...

Required methods

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

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

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

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

fn dot(&self, other: &Self) -> Self::Scalar

fn norm(&self) -> Self::Scalar

Loading content...

Implementations on Foreign Types

impl VecOps for Vec<Dual>[src]

type Scalar = Dual

Loading content...

Implementors

impl VecOps for Vector[src]

Convenient Vector Operations (No Clone, No Copy)

type Scalar = f64

fn add(&self, other: &Vector) -> Vector[src]

Addition

fn sub(&self, other: &Vector) -> Vector[src]

Subtraction

fn mul(&self, other: &Vector) -> Vector[src]

Multiplication

fn div(&self, other: &Vector) -> Vector[src]

Division

fn dot(&self, other: &Vector) -> f64[src]

Dot product

fn norm(&self) -> f64[src]

Norm

Loading content...