[−][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 s_add(&self, scala: f64) -> Self
fn s_sub(&self, scala: f64) -> Self
fn s_mul(&self, scala: f64) -> Self
fn s_div(&self, scala: f64) -> Self
fn dot(&self, other: &Self) -> Self::Scalar
fn norm(&self) -> Self::Scalar
fn normalize(&self) -> Self
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]
fn normalize(&self) -> Self
[src]
fn s_add(&self, scala: f64) -> Self
[src]
fn s_sub(&self, scala: f64) -> Self
[src]
fn s_mul(&self, scala: f64) -> Self
[src]
fn s_div(&self, scala: f64) -> Self
[src]
Implementors
impl VecOps for Vector
[src]
Convenient Vector Operations (No Clone, No Copy)
type Scalar = f64
fn add(&self, other: &Self) -> Self
[src]
Addition
fn sub(&self, other: &Self) -> Self
[src]
Subtraction
fn mul(&self, other: &Self) -> Self
[src]
Multiplication
fn div(&self, other: &Self) -> Self
[src]
Division
fn s_add(&self, scala: f64) -> Self
[src]
fn s_sub(&self, scala: f64) -> Self
[src]
fn s_mul(&self, scala: f64) -> Self
[src]
fn s_div(&self, scala: f64) -> Self
[src]
fn dot(&self, other: &Self) -> f64
[src]
Dot product
fn norm(&self) -> f64
[src]
Norm
fn normalize(&self) -> Self
[src]
Normalize