Trait ndarray_linalg::inner::InnerProduct

source ·
pub trait InnerProduct {
    type Elem: Scalar;

    // Required method
    fn inner<S>(&self, rhs: &ArrayBase<S, Ix1>) -> 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, Ix1>) -> Self::Elem
where S: Data<Elem = Self::Elem>,

Inner product `(self.conjugate, rhs)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A, S> InnerProduct for ArrayBase<S, Ix1>
where A: Scalar, S: Data<Elem = A>,

source§

type Elem = A

source§

fn inner<St: Data<Elem = A>>(&self, rhs: &ArrayBase<St, Ix1>) -> A

Implementors§