Trait vectors::Dot
[−]
[src]
pub trait Dot: Sized { type Scalar; fn dot(&self, rhs: &Self) -> Self::Scalar; }
The trait for types supporting the calculation of the dot product
Associated Types
type Scalar
The scalar type returned by self
's dot product
Required Methods
Implementors
impl<T, A> Dot for vectors::dense::stack::DenseVector<A> where
T: Copy + Num,
A: Array<Item = T>, type Scalar = T;impl<'a, T> Dot for vectors::dense::heap::DenseVector<T> where
T: Copy + Num, type Scalar = T;impl<T, A> Dot for vectors::sparse::stack::SparseVector<A> where
T: Copy + Add<T, Output = T> + Mul<T, Output = T> + Zero,
A: Array<Item = (usize, T)>, type Scalar = T;impl<T> Dot for vectors::sparse::heap::SparseVector<T> where
T: Copy + Add<T, Output = T> + Mul<T, Output = T> + Zero, type Scalar = T;