USRP Hardware Driver and USRP Manual  Version: 4.6.0.0
UHD and USRP Manual
math.hpp File Reference
#include <uhd/config.hpp>
#include <uhd/exception.hpp>
#include <stdint.h>
#include <boost/numeric/conversion/bounds.hpp>
#include <cmath>
#include <boost/math/common_factor.hpp>
#include <uhd/utils/fp_compare_delta.ipp>
#include <uhd/utils/fp_compare_epsilon.ipp>

Go to the source code of this file.

Classes

class  uhd::math::fp_compare::fp_compare_epsilon< float_t >
 
class  uhd::math::fp_compare::freq_compare_epsilon
 An alias for fp_compare_epsilon, but with defaults for frequencies. More...
 
class  uhd::math::fp_compare::fp_compare_delta< float_t >
 

Namespaces

 uhd
 
 uhd::math
 
 uhd::math::fp_compare
 

Functions

template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator== (fp_compare_epsilon< float_t > lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator!= (fp_compare_epsilon< float_t > lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator< (fp_compare_epsilon< float_t > lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator<= (fp_compare_epsilon< float_t > lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator> (fp_compare_epsilon< float_t > lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator>= (fp_compare_epsilon< float_t > lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator== (fp_compare_epsilon< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator!= (fp_compare_epsilon< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator< (fp_compare_epsilon< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator<= (fp_compare_epsilon< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator> (fp_compare_epsilon< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator>= (fp_compare_epsilon< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator== (double lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator!= (double lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator< (double lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator<= (double lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator> (double lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator>= (double lhs, fp_compare_epsilon< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator== (fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator!= (fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator< (fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator<= (fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator> (fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator>= (fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator== (fp_compare_delta< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator!= (fp_compare_delta< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator< (fp_compare_delta< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator<= (fp_compare_delta< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator> (fp_compare_delta< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator>= (fp_compare_delta< float_t > lhs, double rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator== (double lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator!= (double lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator< (double lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator<= (double lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator> (double lhs, fp_compare_delta< float_t > rhs)
 
template<typename float_t >
UHD_INLINE bool uhd::math::fp_compare::operator>= (double lhs, fp_compare_delta< float_t > rhs)
 
UHD_INLINE bool uhd::math::frequencies_are_equal (double lhs, double rhs)
 
double uhd::math::dB_to_lin (const double dB_val)
 
double uhd::math::lin_to_dB (const double val)
 
template<typename IntegerType >
IntegerType uhd::math::lcm (IntegerType x, IntegerType y)
 Portable version of lcm() across Boost versions. More...
 
template<typename IntegerType >
IntegerType uhd::math::gcd (IntegerType x, IntegerType y)
 Portable version of gcd() across Boost versions. More...
 
template<typename T >
constexpr int uhd::math::sign (T x)
 Returns the sign of x. More...
 
double uhd::math::wrap_frequency (const double requested_freq, const double rate)
 Return a wrapped frequency that is the equivalent frequency in the first. More...