ComplexProducts

Trait ComplexProducts 

Source
pub trait ComplexProducts
where Self: Sized,
{ // Required methods fn dot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>; fn vdot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>; }
Expand description

ComplexProducts provides trait methods for computing products between complex number vectors. This includes standard and Hermitian dot products.

Required Methods§

Source

fn dot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>

Computes the dot product between two complex number vectors.

Source

fn vdot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>

Computes the Hermitian dot product (conjugate dot product) between two complex number vectors.

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 ComplexProducts for f32

Source§

fn dot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>

Source§

fn vdot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>

Source§

impl ComplexProducts for f64

Source§

fn dot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>

Source§

fn vdot(a: &[Self], b: &[Self]) -> Option<ComplexProduct>

Implementors§