Eigen::internal::nearest_integer_impl< Scalar, IsInteger > Struct Template Reference

#include <MathFunctions.h>

Static Public Member Functions

static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar run_floor (const Scalar &x)
 
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar run_ceil (const Scalar &x)
 
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar run_rint (const Scalar &x)
 
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar run_round (const Scalar &x)
 
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar run_trunc (const Scalar &x)
 

Member Function Documentation

◆ run_ceil()

template<typename Scalar , bool IsInteger = NumTraits<typename unpacket_traits<Scalar>::type>::IsInteger>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar Eigen::internal::nearest_integer_impl< Scalar, IsInteger >::run_ceil ( const Scalar x)
inlinestatic
888  {
889  EIGEN_USING_STD(ceil) return ceil(x);
890  }
#define EIGEN_USING_STD(FUNC)
Definition: Macros.h:1090
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar() ceil(const Scalar &x)
Definition: MathFunctions.h:1205
list x
Definition: plotDoE.py:28

◆ run_floor()

template<typename Scalar , bool IsInteger = NumTraits<typename unpacket_traits<Scalar>::type>::IsInteger>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar Eigen::internal::nearest_integer_impl< Scalar, IsInteger >::run_floor ( const Scalar x)
inlinestatic
885  {
886  EIGEN_USING_STD(floor) return floor(x);
887  }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar() floor(const Scalar &x)
Definition: MathFunctions.h:1200

◆ run_rint()

template<typename Scalar , bool IsInteger = NumTraits<typename unpacket_traits<Scalar>::type>::IsInteger>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar Eigen::internal::nearest_integer_impl< Scalar, IsInteger >::run_rint ( const Scalar x)
inlinestatic
891  {
892  EIGEN_USING_STD(rint) return rint(x);
893  }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar rint(const Scalar &x)
Definition: MathFunctions.h:1190

◆ run_round()

template<typename Scalar , bool IsInteger = NumTraits<typename unpacket_traits<Scalar>::type>::IsInteger>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar Eigen::internal::nearest_integer_impl< Scalar, IsInteger >::run_round ( const Scalar x)
inlinestatic
894  {
895  EIGEN_USING_STD(round) return round(x);
896  }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar round(const Scalar &x)
Definition: MathFunctions.h:1195

◆ run_trunc()

template<typename Scalar , bool IsInteger = NumTraits<typename unpacket_traits<Scalar>::type>::IsInteger>
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar Eigen::internal::nearest_integer_impl< Scalar, IsInteger >::run_trunc ( const Scalar x)
inlinestatic
897  {
898  EIGEN_USING_STD(trunc) return trunc(x);
899  }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar() trunc(const Scalar &x)
Definition: MathFunctions.h:1210

The documentation for this struct was generated from the following file: