Trait Geometric

Source
pub trait Geometric<T> {
    // Required methods
    fn scalar_product(&self, other: &Self) -> T;
    fn abs_scalar_product(&self, other: &Self) -> T
       where T: Signed;
    fn norm_squared(&self) -> T;
}

Required Methods§

Source

fn scalar_product(&self, other: &Self) -> T

Source

fn abs_scalar_product(&self, other: &Self) -> T
where T: Signed,

Source

fn norm_squared(&self) -> T

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.

Implementors§

Source§

impl<T, N: ArrayLength> Geometric<T> for NumericArray<T, N>
where T: Mul<Output = T> + Zero + Copy,