AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::numerics::floating_point_limits< T > Struct Template Reference

Traits class for floating point types to query limit information. The floating_point_limits class is traits class providing a standardized and portable way to query the following information on either host/device: More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/core/numerics/floating_point_limits.hpp>

Public Member Functions

 AXOM_STATIC_ASSERT_MSG (std::is_floating_point< T >::value, "floating_point_limits< T > must be used with a floating type!")
 

Detailed Description

template<typename T>
struct axom::numerics::floating_point_limits< T >

Traits class for floating point types to query limit information. The floating_point_limits class is traits class providing a standardized and portable way to query the following information on either host/device:

  • lowest() – returns the lowest finite value
  • min() – returns the smallest finite value
  • max() – returns the largest finite value
  • epsilon() – returns difference between 1.0 and the next value
Template Parameters
Tthe floating point type, e.g., float, double, or long double.

Member Function Documentation

◆ AXOM_STATIC_ASSERT_MSG()

template<typename T >
axom::numerics::floating_point_limits< T >::AXOM_STATIC_ASSERT_MSG ( std::is_floating_point< T >::value  ,
"floating_point_limits< T > must be used with a floating type!"   
)

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