OpenMPCD
Namespaces
Scalar.hpp File Reference
#include <OpenMPCD/CUDA/Macros.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_floating_point.hpp>
#include <boost/utility/enable_if.hpp>
#include <complex>
Include dependency graph for Scalar.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 OpenMPCD::Scalar
 Holds helper functions for scalar types.
 

Functions

template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, T >::type OpenMPCD::Scalar::getRealPart (const T &val)
 Returns the real part of the given value. More...
 
template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, T >::type OpenMPCD::Scalar::getRealPart (const std::complex< T > &val)
 
template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, bool >::type OpenMPCD::Scalar::isZero (const T &val)
 Returns whether the given value is zero. More...
 
template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, bool >::type OpenMPCD::Scalar::isZero (const std::complex< T > &val)
 
template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, T >::type OpenMPCD::Scalar::getRealPart (const T &val)
 Returns the real part of the given value. More...
 
template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, T >::type OpenMPCD::Scalar::getRealPart (const std::complex< T > &val)
 
template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, bool >::type OpenMPCD::Scalar::isZero (const T &val)
 Returns whether the given value is zero. More...
 
template<typename T >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_floating_point< T >, bool >::type OpenMPCD::Scalar::isZero (const std::complex< T > &val)
 

Detailed Description

Defines helper functions for scalar types.

Definition in file Scalar.hpp.