Trait Dot

Source
pub trait Dot: Sized {
    // Required method
    fn dot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(
        x: &V,
        y: &W,
    ) -> Self;
}
Expand description

Computes x^T * y.

Required Methods§

Source

fn dot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(x: &V, y: &W) -> Self

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 Dot for f32

Source§

fn dot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(x: &V, y: &W) -> f32

Source§

impl Dot for f64

Source§

fn dot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(x: &V, y: &W) -> f64

Source§

impl Dot for Complex32

Source§

fn dot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &V, y: &W, ) -> Complex32

Source§

impl Dot for Complex64

Source§

fn dot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &V, y: &W, ) -> Complex64

Implementors§