Trait DotProduct
vector_space
pub trait DotProduct<T = Self>: VectorSpace { type Output; fn dot(self, other: T) -> Self::Output; }
This trait defines the dot product.
type Output
The output type of the dot product.
fn dot(self, other: T) -> Self::Output
Computes the dot product.
impl DotProduct<f32> for f32
type Output = f32
fn dot(self, other: Self) -> f32
impl DotProduct<f64> for f64
type Output = f64
fn dot(self, other: Self) -> f64