OpenMPCD
|
Holds helper functions for scalar types. More...
Holds helper functions for scalar types.
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.
T | The type of the value to consider. |
[in] | val | The value to consider. |
Definition at line 37 of file Scalar.hpp.
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.
T | The type of the value to consider. |
[in] | val | The value to consider. |
Definition at line 66 of file Scalar.hpp.