etl/docs/raw/utilities/numeric.txt

27 lines
855 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)