InnerProduct

Trait InnerProduct 

Source
pub trait InnerProduct {
    type Elem: Scalar;

    // Required method
    fn inner(&self, rhs: &ArrayRef<Self::Elem, Ix1>) -> 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(&self, rhs: &ArrayRef<Self::Elem, Ix1>) -> Self::Elem

Inner product `(self.conjugate, rhs)

Implementations on Foreign Types§

Source§

impl<A> InnerProduct for ArrayRef<A, Ix1>
where A: Scalar,

Source§

type Elem = A

Source§

fn inner(&self, rhs: &ArrayRef<A, Ix1>) -> A

Implementors§