Skip to main content

DotProduct

Trait DotProduct 

Source
pub trait DotProduct<Rhs>: Sized + Copy {
    type Result: SimdRealField;

    // Required method
    fn gdot(&self, rhs: Rhs) -> Self::Result;
}
Expand description

Trait for computing generalized dot products.

Required Associated Types§

Source

type Result: SimdRealField

The result type of the dot product.

Required Methods§

Source

fn gdot(&self, rhs: Rhs) -> Self::Result

Computes the generalized dot product of self with rhs.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DotProduct<f32> for f32

Source§

type Result = f32

Source§

fn gdot(&self, rhs: f32) -> Self::Result

Source§

impl<N: SimdRealCopy> DotProduct<Matrix<N, Const<2>, Const<1>, ArrayStorage<N, 2, 1>>> for Vector2<N>

Source§

type Result = N

Source§

fn gdot(&self, rhs: Vector2<N>) -> Self::Result

Source§

impl<N: SimdRealCopy> DotProduct<Matrix<N, Const<3>, Const<1>, ArrayStorage<N, 3, 1>>> for Vector3<N>

Source§

type Result = N

Source§

fn gdot(&self, rhs: Vector3<N>) -> Self::Result

Source§

impl<N: SimdRealCopy> DotProduct<N> for Vector1<N>

Source§

type Result = N

Source§

fn gdot(&self, rhs: N) -> Self::Result

Implementors§