[][src]Trait aljabar::InnerSpace

pub trait InnerSpace: VectorSpace where
    Self: Clone,
    Self: MetricSpace<Metric = Self::Scalar>, 
{ fn dot(self, other: Self) -> Self::Scalar; fn magnitude2(self) -> Self::Scalar { ... } }

Vector spaces that have an inner (also known as "dot") product.

Required methods

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

Return the inner (also known as "dot") product.

Loading content...

Provided methods

fn magnitude2(self) -> Self::Scalar

Returns the squared length of the value.

Loading content...

Implementors

impl<T, const N: usize> InnerSpace for Vector<T, { N }> where
    T: Clone + Zero,
    T: Add<T, Output = T>,
    T: Sub<T, Output = T>,
    T: Mul<T, Output = T>,
    T: Div<T, Output = T>,
    T: AddAssign<T>,
    Self: Clone
[src]

Loading content...