|
| struct | maybe_allocate |
| | Possibly holds an object in its internal buffer. More...
|
| class | MemoryManagement |
| | ! Handles allocation of a type T, using indexer as the integer type to indicate sizes. More...
|
| struct | separate_thread_accessor |
| | ! More...
|
| class | separate_thread_holder |
| | Manages objects of type T in a thread-safe way, ensuring that there's an object available for each separate thread while minimizing the number of allocations. More...
|
| class | SimpleContainer |
| | Holds a run-time amount of objects of type \T, measuring sizes with indexer, in memory context Context. More...
|
| class | SimpleContainer< T, indexer, Context, false > |
| class | SimpleContainer< T, indexer, Context, true > |
| class | SimpleHolder |
| | Holds one objects of type \T in memory context Context. More...
|
| class | SimpleHolder< T, Context, false > |
| class | SimpleHolder< T, Context, true > |
|
| template<class T, class indexer = unsigned int> |
| using | CPU_array = SimpleContainer<T, indexer, MemoryContext::CPU, true> |
| | Holds a run-time specified amount of objects of type T in CPU memory.
|
| template<class T, class indexer = unsigned int> |
| using | CUDA_array = SimpleContainer<T, indexer, MemoryContext::CUDAGPU, true> |
| | Holds a run-time specified amount of objects of type T in CUDA GPU memory.
|
| template<class T, class indexer = unsigned int> |
| using | CUDA_kernel_array = SimpleContainer<T, indexer, MemoryContext::CUDAGPU, false> |
| | Non-owning pointer to an array of T in CUDA GPU memory.
|
| template<class T> |
| using | CPU_object = SimpleHolder<T, MemoryContext::CPU, true> |
| | Holds an object of type T in CPU memory.
|
| template<class T> |
| using | CUDA_object = SimpleHolder<T, MemoryContext::CUDAGPU, true> |
| | Holds an object of type T in CUDA GPU memory.
|
| template<class T> |
| using | CUDA_kernel_object = SimpleHolder<T, MemoryContext::CUDAGPU, false> |
| | Non-owning pointer to an object of type T in CUDA GPU memory.
|
| template<class T> |
| using | CUDA_pinned_CPU_object = SimpleHolder<T, MemoryContext::CUDAPinnedCPU, true> |
| | Holds an object of type T in CUDA GPU memory.
|
|
| template<class T1, class T2> |
| constexpr auto | int_ceil_div (const T1 num, const T2 denom) |
| | Returns the ceiling of num/denom, with proper rounding.
|
| template<class T1, class T2> |
| constexpr auto | int_floor_div (const T1 num, const T2 denom) |
| | Returns the floor of num/denom, with proper rounding.
|
| template<class Base = float, class Exp = int> |
| constexpr Base | compile_time_pow2 (const Exp exp) |
| | Returns 2 to the power of exp.
|
| template<class T> |
| constexpr unsigned int | int_ceil_log_2 (T num) |
| | Returns the ceiling of the base-2 logarithm of a number (i.
|
| template<class T> |
| constexpr unsigned char | Pearson_hash (const T number) |
| | Calculates a Pearson hash from @ number.
|
| template<class T> |
| constexpr unsigned short | Pearson_hash_16_bit (const T number) |
| | Calculates a 16-bit Pearson hash from @ number.
|
| static CUDA_HOS_DEV float | erf_inv_wrapper (const float x) |
| static CUDA_HOS_DEV float | regularize_angle (const float b, const float a=0.f) |
| static CUDA_HOS_DEV double | regularize_angle (const double b, const double a=0.) |
| template<class T> |
| static CUDA_HOS_DEV T | angular_difference (const T x, const T y) |
| static CUDA_HOS_DEV float | eta_from_coordinates (const float x, const float y, const float z) |
| static CUDA_HOS_DEV double | eta_from_coordinates (const double x, const double y, const double z) |
| static CUDA_HOS_DEV void | partial_kahan_babushka_neumaier_sum (const float &to_add, float &sum, float &corr) |
| | Implements one step of a Kahan-Babushka-Neumaier sum by adding to_add to sum with the correction term corr.
|
| template<class ... Floats, class disabler = std::enable_if_t < (std::is_same_v<std::decay_t<Floats>, float> && ...) >> |
| CUDA_HOS_DEV float | sum_kahan_babushka_neumaier (const Floats &... fs) |
| | Adds a list of floats using the Kahan-Babushka-Neumaier algorithm for greater precision (at the cost of additional operations).
|
| static CUDA_HOS_DEV float | product_sum_cornea_harrison_tang (const float a, const float b, const float c, const float d) |
| static CUDA_HOS_DEV float | corrected_dot_product (const float a_1, const float a_2, const float a_3, const float b_1, const float b_2, const float b_3) |
| CUDA_HOS_DEV float | corrected_dot_product (const float(&a)[3], const float(&b)[3]) |
| static CUDA_HOS_DEV void | corrected_cross_product (float(&res)[3], const float a1, const float a2, const float a3, const float b1, const float b2, const float b3) |
| static CUDA_HOS_DEV void | corrected_cross_product (float(&res)[3], const float(&x)[3], const float(&y)[3]) |
| static CUDA_HOS_DEV float | corrected_magn_cross_product (const float a1, const float a2, const float a3, const float b1, const float b2, const float b3) |
| static CUDA_HOS_DEV float | corrected_magn_cross_product (const float(&x)[3], const float(&y)[3]) |