Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
SIMDScattering.hpp File Reference

SIMD-accelerated dot product, Debye sum, complex exponential, and Miller phase sum kernels. More...

Include dependency graph for SIMDScattering.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  correlation
namespace  correlation::math
 Defines universal mathematical and physical constants.

Functions

template<typename T>
T correlation::math::simdDot (const T *input_a, const T *input_b, std::size_t count) noexcept
 Computes the dot product of two array buffers.
template<typename T>
void correlation::math::dotBlock (T v1x, T v1y, T v1z, const T *v2x, const T *v2y, const T *v2z, T *out_dot, std::size_t count) noexcept
 Computes dot products between a reference vector and a block of target vectors.
template<typename T>
T correlation::math::debyeSum (T q_magnitude, const T *distances, T *scratch, std::size_t count) noexcept
 Computes the Debye scattering equation sum across distances.
template<typename T>
void correlation::math::complexExpSum (T q_x, T q_y, T q_z, const T *x_s, const T *y_s, const T *z_s, std::size_t count, ComplexExpSumResult< T > &result) noexcept
 Computes the sum of complex exponentials for a query q-vector.
template<typename T>
void correlation::math::complexExpSum (const ComplexExpSumParams< T > &params, ComplexExpSumResult< T > &result) noexcept
template<typename T = real_t>
ComplexExpSumResult< T > correlation::math::complexExpSum (T q_x, T q_y, T q_z, const T *x_s, const T *y_s, const T *z_s, std::size_t count) noexcept
template<typename T = real_t>
ComplexExpSumResult< T > correlation::math::complexExpSum (const MillerExpSumParams< T > &params) noexcept
template<typename T>
void correlation::math::millerPhaseSum (const MillerPhaseSumParams< T > &params, MillerPhaseSumResult< T > &result) noexcept
 Computes the Miller phase sum across angle blocks.
template<typename T = real_t>
MillerPhaseSumResult< T > correlation::math::millerPhaseSum (const MillerPhaseSumParams< T > &params) noexcept
template<typename T>
void correlation::math::millerPhaseSum (const T *cos1, const T *sin1, const T *cos2, const T *sin2, const T *cos3, const T *sin3, std::size_t count, MillerPhaseSumResult< T > &result) noexcept
template<typename T = real_t>
MillerPhaseSumResult< T > correlation::math::millerPhaseSum (const T *cos1, const T *sin1, const T *cos2, const T *sin2, const T *cos3, const T *sin3, std::size_t count) noexcept

Detailed Description

SIMD-accelerated dot product, Debye sum, complex exponential, and Miller phase sum kernels.

License
SPDX-License-Identifier: AGPL-3.0-only