|
DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
|
#include <cmath>#include <cstddef>#include <iterator>#include <numeric>#include <type_traits>#include <utility>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_arithmetic_v<T>>> | |
| constexpr int | CppUtils::Math::findOrderOfMagnitude (T value) noexcept |
| template<typename T, typename = std::enable_if_t<std::is_arithmetic_v<T>>> | |
| constexpr long double | CppUtils::Math::findAbsoluteError (T expectedValue, std::size_t significantFigures) noexcept |
| template<typename Iterator, typename T = typename std::iterator_traits<Iterator>::value_type, typename = std::enable_if_t<std::is_default_constructible_v<T>>> | |
| constexpr T | CppUtils::Math::calculateAverage (Iterator x_begin, Iterator x_end) |
| template<typename Iterator, typename T = typename std::iterator_traits<Iterator>::value_type, typename = std::enable_if_t<std::is_default_constructible_v<T>>> | |
| constexpr decltype(auto) | CppUtils::Math::calculateVariance (Iterator x_begin, Iterator x_end) |