Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
shims
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
>
45
#include <
blaze/util/typetraits/IsArithmetic.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// ISFINITE SHIM
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
66
template
<
typename
T, EnableIf_t< IsArithmetic_v<T> >* =
nullptr
>
67
inline
bool
isfinite
( T a )
noexcept
68
{
69
return
std::isfinite( a );
70
}
71
//*************************************************************************************************
72
73
}
// namespace blaze
74
75
#endif
EnableIf.h
Header file for the EnableIf class template.
IsArithmetic.h
Header file for the IsArithmetic type trait.
blaze::isfinite
bool isfinite(const DenseMatrix< MT, SO > &dm)
Checks the given dense matrix for finite elements.
Definition
DenseMatrix.h:1389
Generated by
1.18.0