Trait peroxide::traits::math::InnerProduct

source ·
pub trait InnerProduct: Normed {
    // Required method
    fn dot(&self, rhs: &Self) -> Self::Scalar;
}
Expand description

Inner product Vector

Required Methods§

source

fn dot(&self, rhs: &Self) -> Self::Scalar

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl InnerProduct for Vec<f64>

source§

fn dot(&self, rhs: &Self) -> f64

source§

impl InnerProduct for Vec<Complex<f64>>

source§

fn dot(&self, rhs: &Self) -> Self::Scalar

source§

impl InnerProduct for Complex<f64>

source§

fn dot(&self, rhs: &Self) -> Self::Scalar

Implementors§

source§

impl InnerProduct for ComplexMatrix

Frobenius inner product

source§

impl InnerProduct for Matrix

Frobenius inner product