Pothos  0.4.3-gabce2ce6
The Pothos dataflow programming software suite
Namespaces
QFormat.hpp File Reference
#include <Pothos/Config.hpp>
#include <type_traits>
#include <complex>
#include <cmath>

Go to the source code of this file.

Namespaces

 Pothos
 
 Pothos::Util
 

Functions

template<typename T , typename U >
std::enable_if< std::is_floating_point< U >::value, T >::type Pothos::Util::fromQ (const U &in, const int=0)
 
template<typename T , typename U >
std::enable_if< std::is_integral< U >::value, T >::type Pothos::Util::fromQ (const U &in, const int n=sizeof(U)*4)
 
template<typename T , typename U >
std::enable_if< std::is_floating_point< U >::value, T >::type Pothos::Util::fromQ (const std::complex< U > &in, const int=0)
 
template<typename T , typename U >
std::enable_if< std::is_integral< U >::value, T >::type Pothos::Util::fromQ (const std::complex< U > &in, const int n=sizeof(U)*4)
 
template<typename T , typename U >
std::enable_if< std::is_floating_point< T >::value, T >::type Pothos::Util::floatToQ (const U &in, const int=0)
 
template<typename T , typename U >
std::enable_if< std::is_integral< T >::value, T >::type Pothos::Util::floatToQ (const U &in, const int n=sizeof(T)*4)
 
template<typename T , typename U >
std::enable_if< std::is_floating_point< typename T::value_type >::value, T >::type Pothos::Util::floatToQ (const std::complex< U > &in, const int=0)
 
template<typename T , typename U >
std::enable_if< std::is_integral< typename T::value_type >::value, T >::type Pothos::Util::floatToQ (const std::complex< U > &in, const int n=sizeof(typename T::value_type)*4)
 

Detailed Description

Templated fixed point utilities and Q-format conversions.