InnerProduct

Trait InnerProduct 

Source
pub trait InnerProduct {
    type Elem: Scalar;

    // Required method
    fn inner<S>(&self, rhs: &ArrayBase<S, Dim<[usize; 1]>>) -> Self::Elem
       where S: Data<Elem = Self::Elem>;
}
Expand description

Inner Product

Differenct from Dot trait, this take complex conjugate of self elements

Required Associated Types§

Required Methods§

Source

fn inner<S>(&self, rhs: &ArrayBase<S, Dim<[usize; 1]>>) -> Self::Elem
where S: Data<Elem = Self::Elem>,

Inner product `(self.conjugate, 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.

Implementors§

Source§

impl<A, S> InnerProduct for ArrayBase<S, Dim<[usize; 1]>>
where A: Scalar, S: Data<Elem = A>,

Source§

type Elem = A