|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Namespaces | |
| annotations | |
| filesystem | |
| raii | |
| string | |
Classes | |
| struct | BitTraits |
| struct | BitTraits< std::uint64_t > |
| struct | BitTraits< std::uint32_t > |
| struct | BitTraits< std::uint16_t > |
| struct | BitTraits< std::uint8_t > |
| class | Timer |
| A simple Timer class to measure execution time. More... | |
| class | LexiComparator |
| Compares std::vector< T > in lexicographic order. More... | |
Functions | |
| AXOM_HOST_DEVICE int | countr_zero (std::uint64_t word) noexcept |
| Counts the number of trailing zeros in word. More... | |
| AXOM_HOST_DEVICE int | popcount (std::uint64_t word) noexcept |
| Counts the number of set bits in word. More... | |
| AXOM_HOST_DEVICE std::int32_t | countl_zero (std::int32_t word) noexcept |
| Counts the number of leading zeros in word. More... | |
| std::string | getHostName () |
| Returns the name of the machine. More... | |
| std::string | getUserName () |
| Returns the name of the current user. More... | |
| std::locale | locale (const std::string &name="en_US.UTF-8") |
| Returns a valid locale for the current system. More... | |
| void | processAbort () |
| Gracefully aborts the application. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE T | abs (const T &x) |
| Returns the absolute value of x. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE T | floor (const T &x) |
| Returns the largest integer less than or equal to x. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE T | ceil (const T &x) |
| Returns the smallest integer greater than or equal to x. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE const T & | max (const T &x, const T &y) |
| Returns the max value of x and y. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE const T & | min (const T &x, const T &y) |
| Returns the min value of x and y. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE void | swap (T &a, T &b) |
| Swaps the values of a, b. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE T | lerp (T A, T B, T t) |
| returns the linear interpolation of A and B at t. i.e. (1-t)A+tB More... | |
| template<typename T > | |
| T | log2 (T val) |
| Returns the base 2 logarithm of the input. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE T | clampVal (T val, T lower, T upper) |
| Clamps an input value to a given range. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE T | clampUpper (T val, T upper) |
| Clamps the upper range on an input value. More... | |
| template<typename T > | |
| AXOM_HOST_DEVICE T | clampLower (T val, T lower) |
| Clamps the lower range on an input value. More... | |
| int | binomialCoefficient (int n, int k) |
Computes the binomial coefficient n choose k More... | |
| template<typename T > | |
| T | random_real (const T &a, const T &b) |
| Returns a random real number within the specified interval. More... | |
| template<typename T > | |
| T | random_real (const T &a, const T &b, unsigned int seed) |
| Returns a random real number within the specified interval given the bounds of the interval and a seed value for the underlying random number generator. More... | |
| bool | isLittleEndian () |
| Tests the endianness of the system. More... | |
| template<typename T > | |
| constexpr T | byteswap (T val) noexcept |
| Reverses the bytes of the input value. More... | |
| template<typename RealType > | |
| AXOM_HOST_DEVICE bool | isNearlyEqual (RealType a, RealType b, RealType thresh=1.0e-8) |
| Fuzzy comparison of two real valued quantities. More... | |
| template<typename RealType > | |
| AXOM_HOST_DEVICE bool | isNearlyEqualRelative (RealType a, RealType b, RealType relThresh=1.0e-6, RealType absThresh=1.0e-8) |
| Fuzzy comparison of two real valued quantities. More... | |
| template<typename DataType , typename Predicate = std::less<DataType>> | |
| AXOM_SUPPRESS_HD_WARN AXOM_HOST_DEVICE void | insertionSort (DataType *array, IndexType n, Predicate cmp={}) |
| Insertion sort of an array. More... | |
|
inlinenoexcept |
Counts the number of trailing zeros in word.
|
inlinenoexcept |
Counts the number of set bits in word.
References axom::slic::inherit::masks.
|
inlinenoexcept |
Counts the number of leading zeros in word.
| std::string axom::utilities::getHostName | ( | ) |
Returns the name of the machine.
| std::string axom::utilities::getUserName | ( | ) |
Returns the name of the current user.
| std::locale axom::utilities::locale | ( | const std::string & | name = "en_US.UTF-8" | ) |
Returns a valid locale for the current system.
| name | The name of the desired locale |
| void axom::utilities::processAbort | ( | ) |
Gracefully aborts the application.
|
inline |
Returns the absolute value of x.
| [in] | x | value whose absolute value is computed. |
|
inline |
Returns the largest integer less than or equal to x.
| [in] | x | value whose floor value is computed. |
|
inline |
Returns the smallest integer greater than or equal to x.
| [in] | x | value whose ceil value is computed. |
|
inline |
Returns the max value of x and y.
| [in] | x | the first value to check. |
| [in] | y | the second value to check. |
|
inline |
Returns the min value of x and y.
| [in] | x | the first value to check. |
| [in] | y | the second value to check. |
|
inline |
Swaps the values of a, b.
| [in,out] | a | 1st object to swap. |
| [in,out] | b | 2nd object to swap. |
|
inline |
returns the linear interpolation of A and B at t. i.e. (1-t)A+tB
|
inline |
Returns the base 2 logarithm of the input.
| [in] | val | The input value |
|
inline |
Clamps an input value to a given range.
| [in] | val | The value to clamp. |
| [in] | lower | The lower range. |
| [in] | upper | The upper range. |
|
inline |
Clamps the upper range on an input value.
| [in] | val | The value to clamp |
| [in] | upper | The upper range |
|
inline |
Clamps the lower range on an input value.
| [in] | val | The value to clamp |
| [in] | lower | The lower range |
| int axom::utilities::binomialCoefficient | ( | int | n, |
| int | k | ||
| ) |
Computes the binomial coefficient n choose k
|
inline |
Returns a random real number within the specified interval.
| [in] | a | the interval's lower bound |
| [in] | b | the interval's upper bound |
| T | a built-in floating point type, e.g., double, float, long double. |
References AXOM_STATIC_ASSERT.
|
inline |
Returns a random real number within the specified interval given the bounds of the interval and a seed value for the underlying random number generator.
| [in] | a | the interval's lower bound |
| [in] | b | the interval's upper bound |
| [in] | seed | user-supplied seed for the random number generator |
| T | a built-in floating type, e.g., double, float, long double. |
References AXOM_STATIC_ASSERT.
|
inline |
Tests the endianness of the system.
|
constexprnoexcept |
Reverses the bytes of the input value.
| [in] | val | The input value |
References AXOM_STATIC_ASSERT_MSG.
|
inline |
Fuzzy comparison of two real valued quantities.
| [in] | a | The first real valued quantities we are comparing. |
| [in] | b | The second real valued quantities we are comparing. |
| [in] | thresh | The threshold of the fuzzy comparison. Default is 1.0e-8. |
References abs().
|
inline |
Fuzzy comparison of two real valued quantities.
| [in] | a | The first real valued quantities we are comparing. |
| [in] | b | The second real valued quantities we are comparing. |
| [in] | relThresh | The relative threshold of the fuzzy comparison. Default is 1.0e-6. |
| [in] | absThresh | The absolute threshold of the fuzzy comparison. Default is 1.0e-8. |
|
inline |
Insertion sort of an array.
| [in] | array | The array to sort. |
| [in] | n | The number of entries in the array. |
| [in] | cmp | The comparator to use for comparing elements; "less than" by default. |