A C++ template library for embedded applications
MIT licensed
Designed and
maintained by
John Wellbelove

numeric

Numeric functions reverse engineered from C++ 11.

____________________________________________________________________________________________________

iota

Fills a range of elements with sequentially increasing values starting with value.
See std::iota

template <typename TIterator, typename T>
void iota(TIterator first, TIterator last, T value);
____________________________________________________________________________________________________

lerp

Returns the result of a + t(b − a)

template <typename T>
T lerp(T a, T b, T t) ETL_NOEXCEPT

____________________________________________________________________________________________________

midpoint

Calculates the midpoint of integers, floating-points, or pointers.

template <typename T>
ETL_CONSTEXPR T midpoint(T a, T b)

template <typename T>
ETL_CONSTEXPR T midpoint(T* a, T* b)
numeric.h