Blaze 3.9
IsFinite.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_SHIMS_ISFINITE_H_
36#define _BLAZE_MATH_SHIMS_ISFINITE_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <cmath>
44#include <blaze/util/EnableIf.h>
46
47
48namespace blaze {
49
50//=================================================================================================
51//
52// ISFINITE SHIM
53//
54//=================================================================================================
55
56//*************************************************************************************************
66template< typename T, EnableIf_t< IsArithmetic_v<T> >* = nullptr >
67inline bool isfinite( T a ) noexcept
68{
69 return std::isfinite( a );
70}
71//*************************************************************************************************
72
73} // namespace blaze
74
75#endif
Header file for the EnableIf class template.
Header file for the IsArithmetic type trait.
bool isfinite(T a) noexcept
Determines if the given floating point number has finite value.
Definition: IsFinite.h:67