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
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_SHIMS_ISNAN_H_
36
#define _BLAZE_MATH_SHIMS_ISNAN_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/EnableIf.h
>
44
#include <
blaze/util/typetraits/IsFloatingPoint.h
>
45
46
47
//*************************************************************************************************
48
// Macro undefinition
49
//*************************************************************************************************
50
51
#ifdef isnan
52
# undef isnan
53
#endif
54
55
56
namespace
blaze {
57
58
//=================================================================================================
59
//
60
// ISNAN SHIM
61
//
62
//=================================================================================================
63
64
//*************************************************************************************************
78
template
<
typename
T >
79
inline
typename
EnableIf< IsFloatingPoint<T>
,
bool
>::Type
isnan
( T a )
80
{
81
return
a != a;
82
}
83
//*************************************************************************************************
84
85
}
// namespace blaze
86
87
#endif
blaze::isnan
bool isnan(const DenseMatrix< MT, SO > &dm)
Checks the given dense matrix for not-a-number elements.
Definition:
DenseMatrix.h:637
IsFloatingPoint.h
Header file for the IsFloatingPoint type trait.
EnableIf.h
Header file for the EnableIf class template.
blaze::EnableIf
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition:
EnableIf.h:184
Generated on Sun Jan 5 2014 09:03:28 by
1.8.5