micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
math.h File Reference
#include <array>

Go to the source code of this file.

Namespaces

namespace  micro_os_plus
 
namespace  micro_os_plus::micro_test_plus
 
namespace  micro_os_plus::micro_test_plus::math
 Local mathematical functions.
 

Functions

template<class T >
constexpr auto micro_os_plus::micro_test_plus::math::abs (const T t) -> T
 Generic absolute of any value.
 
template<class T , char... Cs>
constexpr auto micro_os_plus::micro_test_plus::math::den () -> T
 Compute the decimals of a number represented as an array of characters.
 
template<class T , char... Cs>
constexpr auto micro_os_plus::micro_test_plus::math::den_size () -> T
 Compute the number of decimal places of a number represented as an array of characters.
 
template<class T , class Value_T >
constexpr auto micro_os_plus::micro_test_plus::math::den_size (Value_T value) -> T
 Compute the number of decimal places of a value, up to 7 digits.
 
template<class T >
constexpr auto micro_os_plus::micro_test_plus::math::min_value (const T &lhs, const T &rhs) -> const T &
 Generic minimum of two values.
 
template<class T , char... Cs>
constexpr auto micro_os_plus::micro_test_plus::math::num () -> T
 Compute the integral value of a number represented as an array of characters.
 
template<class T , class Exp_T >
constexpr auto micro_os_plus::micro_test_plus::math::pow (const T base, const Exp_T exp) -> T
 Generic 'power of', to raise base to exponent (base ^ exp).