23#ifdef CORRELATION_SIMD_AVX512
24 return detail::avx512::sincIntegral(params);
25#elifdef CORRELATION_SIMD_AVX2
35inline double sincIntegral(
double q_magnitude,
const double *CORRELATION_RESTRICT integrand,
36 const double *CORRELATION_RESTRICT radial_bins,
37 double *CORRELATION_RESTRICT sinqr_scratch, std::size_t count)
noexcept {
39 .q_magnitude = q_magnitude,
40 .integrand = integrand,
41 .radial_bins = radial_bins,
42 .sinqr_scratch = sinqr_scratch,
50inline float sincIntegral(
float q_magnitude,
const float *CORRELATION_RESTRICT integrand,
51 const float *CORRELATION_RESTRICT radial_bins,
52 float *CORRELATION_RESTRICT sinqr_scratch, std::size_t count)
noexcept {
54 .q_magnitude = q_magnitude,
55 .integrand = integrand,
56 .radial_bins = radial_bins,
57 .sinqr_scratch = sinqr_scratch,
68#ifdef CORRELATION_SIMD_AVX512
69 detail::avx512::normalizeRdfBins(params);
70#elifdef CORRELATION_SIMD_AVX2
82#ifdef CORRELATION_SIMD_AVX512
83 detail::avx512::scaleBins(params);
84#elifdef CORRELATION_SIMD_AVX2
95template <
typename T>
inline void scaleBins(T *arr, T scale_factor, std::size_t count)
noexcept {
98 .scale_factor = scale_factor,
Low-level AVX2 intrinsic kernel implementations.
Low-level AVX-512 intrinsic kernel implementations.
Common parameter containers, POD types, and scalar helpers for SIMD operations.
Low-level Scalar fallback kernel implementations.
void scaleBins(const ScaleBinsParams< double > ¶ms) noexcept
Definition AVX2Kernels.hpp:353
void normalizeRdfBins(const RDFNormalizationParams< double > ¶ms) noexcept
Definition AVX2Kernels.hpp:269
double sincIntegral(const SincIntegralParams< double > ¶ms) noexcept
Definition AVX2Kernels.hpp:197
double sincIntegral(const SincIntegralParams< double > ¶ms) noexcept
Definition ScalarKernels.hpp:92
void normalizeRdfBins(const RDFNormalizationParams< double > ¶ms) noexcept
Definition ScalarKernels.hpp:143
void scaleBins(const ScaleBinsParams< double > ¶ms) noexcept
Definition ScalarKernels.hpp:191
Defines universal mathematical and physical constants.
T sincIntegral(const SincIntegralParams< T > ¶ms) noexcept
Computes a sinc-weighted integral over a range.
Definition SIMDNormalization.hpp:22
void scaleBins(const ScaleBinsParams< T > ¶ms) noexcept
Scales an array by a constant factor in-place using ScaleBinsParams container.
Definition SIMDNormalization.hpp:81
void normalizeRdfBins(const RDFNormalizationParams< T > ¶ms) noexcept
Normalizes Radial Distribution Function (RDF) bins.
Definition SIMDNormalization.hpp:67
Parameter container for normalizeRdfBins kernel invocations.
Definition SIMDTypes.hpp:70
Parameter container for scaleBins kernel invocations.
Definition SIMDTypes.hpp:88
Parameter container for sincIntegral kernel invocations.
Definition SIMDTypes.hpp:58