|
OpenMPCD
|
#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>

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) |
Defines helper functions for scalar types.
Definition in file Scalar.hpp.
1.8.17