Trait vecmat::traits::Dot[][src]

pub trait Dot<V = Self> {
    type Output;
    fn dot(self, other: V) -> Self::Output;
}

Dot product trait.

Associated Types

type Output[src]

Dot product output type.

Loading content...

Required methods

fn dot(self, other: V) -> Self::Output[src]

Perform dot product.

Loading content...

Implementations on Foreign Types

impl Dot<u8> for u8[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<u16> for u16[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<u32> for u32[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<u64> for u64[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<usize> for usize[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<i8> for i8[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<i16> for i16[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<i32> for i32[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<i64> for i64[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<isize> for isize[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<f32> for f32[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

impl Dot<f64> for f64[src]

type Output = Self

fn dot(self, other: Self) -> Self[src]

Loading content...

Implementors

impl<T> Dot<Complex<T>> for Complex<T> where
    T: Add<Output = T> + Mul<Output = T>, 
[src]

type Output = T

fn dot(self, other: Self) -> T[src]

impl<T> Dot<Quaternion<T>> for Quaternion<T> where
    T: Add<Output = T> + Mul<Output = T>, 
[src]

type Output = T

fn dot(self, other: Self) -> T[src]

impl<T, const L: usize, const M: usize, const N: usize> Dot<Matrix<T, M, N>> for Matrix<T, L, M> where
    T: Mul<Output = T> + Add<Output = T> + Copy
[src]

type Output = Matrix<T, L, N>

fn dot(self, mat: Matrix<T, M, N>) -> Self::Output[src]

impl<T, const M: usize, const N: usize> Dot<Matrix<T, M, N>> for Vector<T, M> where
    T: Mul<Output = T> + Add<Output = T> + Copy
[src]

type Output = Vector<T, N>

fn dot(self, mat: Matrix<T, M, N>) -> Self::Output[src]

impl<T, const M: usize, const N: usize> Dot<Vector<T, N>> for Matrix<T, M, N> where
    T: Mul<Output = T> + Add<Output = T> + Copy
[src]

type Output = Vector<T, M>

fn dot(self, vec: Vector<T, N>) -> Self::Output[src]

impl<T, const N: usize> Dot<Vector<T, N>> for Vector<T, N> where
    T: Mul<Output = T> + Add<Output = T>, 
[src]

type Output = T

fn dot(self, other: Vector<T, N>) -> Self::Output[src]

Loading content...