ndarray_linalg::inner

Trait 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)

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<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§