Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
blaze
math
shims
IsNaN.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_SHIMS_ISNAN_H_
23
#define _BLAZE_MATH_SHIMS_ISNAN_H_
24
25
26
//*************************************************************************************************
27
// Includes
28
//*************************************************************************************************
29
30
#include <
blaze/util/constraints/FloatingPoint.h
>
31
32
33
//*************************************************************************************************
34
// Macro undefinition
35
//*************************************************************************************************
36
37
#ifdef isnan
38
# undef isnan
39
#endif
40
41
42
namespace
blaze {
43
44
//=================================================================================================
45
//
46
// ISNAN SHIM
47
//
48
//=================================================================================================
49
50
//*************************************************************************************************
64
template
<
typename
T >
65
inline
bool
isnan
( T a )
66
{
67
BLAZE_CONSTRAINT_MUST_BE_FLOATING_POINT_TYPE
( T );
68
return
a != a;
69
}
70
//*************************************************************************************************
71
72
}
// namespace blaze
73
74
#endif
Generated on Fri May 24 2013 16:39:55 by
1.8.3.1