OpenMPCD
OpenMPCD::Scalar Namespace Reference

Holds helper functions for scalar types. More...

Detailed Description

Holds helper functions for scalar types.

Function Documentation

◆ getRealPart()

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.

Template Parameters
TThe type of the value to consider.
Parameters
[in]valThe value to consider.

Definition at line 37 of file Scalar.hpp.

◆ isZero()

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.

Template Parameters
TThe type of the value to consider.
Parameters
[in]valThe value to consider.

Definition at line 66 of file Scalar.hpp.