HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
math.hpp File Reference

Miscellaneous math functions. More...

#include "type_traits.hpp"
#include "../macros.hpp"
#include "assert.hpp"
#include "cast.hpp"
#include "terminate.hpp"
#include "exception.hpp"
#include <complex>
#include <cmath>
#include <limits>
#include <span>
#include <tuple>
#include <numeric>
#include <iterator>
#include <bit>
#include <concepts>
#include <algorithm>
#include <numbers>
#include <intrin.h>
#include <immintrin.h>

Go to the source code of this file.

Namespaces

namespace  v1
 DOXYGEN BUG.
 

Functions

 hi_export_module (hikogui.utility.math)
 
template<typename Iterator >
auto v1::mean (Iterator first, Iterator last)
 
template<typename Iterator , typename T >
auto v1::stddev (Iterator first, Iterator last, T mean)
 
template<typename T >
constexpr bool v1::inplace_max (T &a, T const &b) noexcept
 
template<typename T >
constexpr bool v1::inplace_min (T &a, T const &b) noexcept
 
template<typename T >
constexpr void v1::inplace_clamp (T &a, T const &lo, T const &hi) noexcept
 
template<typename T >
constexpr T v1::abs (T a) noexcept
 
template<std::floating_point T>
constexpr bool v1::almost_equal (T a, T b) noexcept
 
template<std::floating_point T>
constexpr T v1::to_radian (T degree) noexcept
 Convert degree to radian.
 
template<std::unsigned_integral T>
constexpr T v1::floor (T value, T alignment) noexcept
 The greatest multiple of alignment less than or equal to value.
 
template<std::unsigned_integral T>
constexpr T v1::ceil (T value, T alignment) noexcept
 The smallest multiple of alignment greater than or equal to value.
 
template<std::floating_point T>
constexpr bool v1::isnan (T value) noexcept
 
constexpr uint64_t v1::pow10 (unsigned int x) noexcept
 
template<std::unsigned_integral T>
constexpr unsigned int v1::decimal_width (T x)
 

Variables

constexpr unsigned long long v1::pow10_table [20]
 

Detailed Description

Miscellaneous math functions.