Skip to main content

Module specialized

Module specialized 

Source
Expand description

The complex math trait family.

Thermite’s math families (CoreMath, TranscendentalMath, SpatialMath, RealMath) are all Self -> Self, a real vector having nothing else to return. A complex number does: its modulus and argument are real, and its polar form is a pair of reals. Those operations get their own family here, built the way the core ones are:

So z.norm_p::<Precision>() behaves as x.sin_p::<Precision>() does, and generic code bounds on V: ComplexMath as it would on V: TranscendentalMath.

Re-exports§

pub use crate::math::special::SpecializedComplexSpecialMath;special

Traits§

ComplexVector
A vector of complex numbers over a real vector type.
SpecializedComplexMath
Element-parameterized implementations behind ComplexMath.