mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
27 lines
855 B
Plaintext
27 lines
855 B
Plaintext
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)
|
||
|