|
DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
|
#include <algorithm>#include <type_traits>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | CppUtils |
| namespace | CppUtils::Math |
Functions | |
| template<typename T, typename = std::enable_if_t<std::is_integral_v<T> && !std::is_same_v<T, bool>>> | |
| constexpr bool | CppUtils::Math::isEven (T value) |
| template<typename T, typename = std::enable_if_t<std::is_integral_v<T>>> | |
| constexpr bool | CppUtils::Math::isOdd (T value) |
| template<typename T> | |
| constexpr bool | CppUtils::Math::withinRange (T value, T min, T max) |
| template<int Min, int Max, typename T> | |
| constexpr bool | CppUtils::Math::withinRange (T value) |
| template<typename T> | |
| constexpr std::vector< T > | CppUtils::Math::linearlyInterpolate (const std::vector< T > &x, T y1, T y2) |