Trait alga::linear::InnerSpace
source · pub trait InnerSpace: NormedSpace {
// Required method
fn inner_product(&self, other: &Self) -> Self::ComplexField;
// Provided method
fn angle(&self, other: &Self) -> Self::RealField { ... }
}
Expand description
A vector space equipped with an inner product.
It must be a normed space as well and the norm must agree with the inner product. The inner product must be symmetric, linear in its first argument, and positive definite.
Required Methods§
sourcefn inner_product(&self, other: &Self) -> Self::ComplexField
fn inner_product(&self, other: &Self) -> Self::ComplexField
Computes the inner product of self
with other
.
Provided Methods§
Object Safety§
This trait is not object safe.