Trait vector_space::VectorSpace
source · pub trait VectorSpace: Copy + Zero + PartialEqwhere
Self: Add<Output = Self> + Sub<Output = Self> + Mul<Self::Scalar, Output = Self> + Div<Self::Scalar, Output = Self> + Neg<Output = Self>,{
type Scalar: Real + PartialOrd;
}
Expand description
This trait specifies some type to be a vector type. It specifies the scalar type and is required for other vector types.
Required Associated Types§
sourcetype Scalar: Real + PartialOrd
type Scalar: Real + PartialOrd
The scalar type of the vector space.
Object Safety§
This trait is not object safe.