[−][src]Trait peroxide::structure::vector::VecOps
Convenient Vector Operation trait
Associated Types
type Scalar
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
Implementations on Foreign Types
impl VecOps for Vec<Dual>
[src]
type Scalar = Dual
fn add(&self, other: &Self) -> Self
[src]
fn sub(&self, other: &Self) -> Self
[src]
fn mul(&self, other: &Self) -> Self
[src]
fn div(&self, other: &Self) -> Self
[src]
fn dot(&self, _other: &Self) -> Self::Scalar
[src]
fn norm(&self) -> Self::Scalar
[src]
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