|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Implementation of specialized mathematical functions (factorials, Legendre polynomials). More...
#include "math/Constants.hpp"#include "math/Precision.hpp"#include "math/SIMDConfig.hpp"#include <array>#include <cmath>

Go to the source code of this file.
Classes | |
| struct | correlation::math::LegendreParams |
| Parameters for Legendre polynomial evaluation (degree and order). More... | |
Namespaces | |
| namespace | correlation |
| namespace | correlation::math |
| Defines universal mathematical and physical constants. | |
Functions | |
| real_t | correlation::math::factorial (int n) |
| Inline helper for factorials up to 20. Beyond 20, the values exceed the capacity of a 64-bit integer, so we return real_t for consistency. | |
| real_t | correlation::math::sphLegendre (LegendreParams params, real_t theta) |
| Computes the spherical associated Legendre polynomial corresponding to std::sph_legendre from C++17. | |
| void | correlation::math::sphLegendreBatch (LegendreParams params, const real_t *theta, real_t *results, size_t count) |
| Vectorized version of sphLegendre. Computes the polynomial for a range of angles. | |
Implementation of specialized mathematical functions (factorials, Legendre polynomials).