Skip to main content

Module math

Module math 

Source
Expand description

Mathematical functions for floating-point vector types.

This module provides a comprehensive set of mathematical operations tailored for floating-point vector types. It includes core mathematical functions, transcendental functions, spatial computations, and real-valued operations.

The traits defined here are designed to be flexible and efficient, allowing for different precision and performance trade-offs through the use of policies. Each mathematical trait has a corresponding version that accepts a policy parameter, enabling fine-tuned control over the behavior of the functions.

Modules§

algorithms
policy
prelude
specialized
Element-parameterized implementations behind the public math traits.

Traits§

Coefficients
CoreMath
Core Math functions for floating-point vectors using the default policy. This is the core set of mathematical operations that form the basis for more advanced functions.
CoreMathWithPolicy
Core Math functions for floating-point vectors with customizable policies. This is the core set of mathematical operations that form the basis for more advanced functions.
FloatConsts
Extensive set of constant special values used in float operations.
FloatMath
Float Math functions for floating-point vectors using the default policy. Float-specific mathematical functions like ldexp and frexp.
FloatMathWithPolicy
Float Math functions for floating-point vectors with customizable policies. Float-specific mathematical functions like ldexp and frexp.
RealMath
Real Math functions for floating-point vectors using the default policy. Real-value mathematical functions that cannot be applied to some number types. (e.g., complex numbers)
RealMathWithPolicy
Real Math functions for floating-point vectors with customizable policies. Real-value mathematical functions that cannot be applied to some number types. (e.g., complex numbers)
ScalarMath
Aggregate of all scalar math traits using the default policy.
ScalarMathWithPolicy
Aggregate of all scalar math traits with customizable policies.
SpatialMath
Spatial Math functions for floating-point vectors using the default policy. Spatial mathematical functions like norms and distances.
SpatialMathWithPolicy
Spatial Math functions for floating-point vectors with customizable policies. Spatial mathematical functions like norms and distances.
TranscendentalMath
Transcendental Math functions for floating-point vectors using the default policy. Transcendental mathematical functions like trigonometric, exponential, and logarithmic functions.
TranscendentalMathWithPolicy
Transcendental Math functions for floating-point vectors with customizable policies. Transcendental mathematical functions like trigonometric, exponential, and logarithmic functions.