USRP Hardware Driver and USRP Manual Version: 3.15.0.0-MacPorts-Release
UHD and USRP Manual
 
Loading...
Searching...
No Matches
uhd::math Namespace Reference

Namespaces

namespace  fp_compare
 

Functions

UHD_INLINE bool frequencies_are_equal (double lhs, double rhs)
 
template<typename IntegerType >
IntegerType lcm (IntegerType x, IntegerType y)
 Portable version of lcm() across Boost versions.
 
template<typename IntegerType >
IntegerType gcd (IntegerType x, IntegerType y)
 Portable version of gcd() across Boost versions.
 

Detailed Description

Contains useful mathematical functions, classes, and constants, which should be used in UHD when portable / std options are not available.

Function Documentation

◆ frequencies_are_equal()

UHD_INLINE bool uhd::math::frequencies_are_equal ( double  lhs,
double  rhs 
)

◆ gcd()

template<typename IntegerType >
IntegerType uhd::math::gcd ( IntegerType  x,
IntegerType  y 
)
inline

Portable version of gcd() across Boost versions.

◆ lcm()

template<typename IntegerType >
IntegerType uhd::math::lcm ( IntegerType  x,
IntegerType  y 
)
inline

Portable version of lcm() across Boost versions.