Namespaces | |
fp_compare | |
Enumerations | |
enum | interp_mode { interp_mode::NEAREST_NEIGHBOR, interp_mode::LINEAR } |
Functions | |
UHD_INLINE bool | frequencies_are_equal (double lhs, double rhs) |
double | dB_to_lin (const double dB_val) |
double | lin_to_dB (const double val) |
template<typename IntegerType > | |
IntegerType | lcm (IntegerType x, IntegerType y) |
Portable version of lcm() across Boost versions. More... | |
template<typename IntegerType > | |
IntegerType | gcd (IntegerType x, IntegerType y) |
Portable version of gcd() across Boost versions. More... | |
template<typename T > | |
constexpr int | sign (T x) |
Returns the sign of x. More... | |
double | wrap_frequency (const double requested_freq, const double rate) |
Return a wrapped frequency that is the equivalent frequency in the first. More... | |
Contains useful mathematical functions, classes, and constants, which should be used in UHD when portable / std
options are not available.
|
strong |
|
inline |
UHD_INLINE bool uhd::math::frequencies_are_equal | ( | double | lhs, |
double | rhs | ||
) |
|
inline |
Portable version of gcd() across Boost versions.
|
inline |
Portable version of lcm() across Boost versions.
|
inline |
|
inlineconstexpr |
Returns the sign of x.
|
inline |
Return a wrapped frequency that is the equivalent frequency in the first.