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

Implementors§

source§

impl InnerProduct for Matrix

Frobenius inner product