Blaze 3.9
Loading...
Searching...
No Matches
IsInf.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_SHIMS_ISINF_H_
36#define _BLAZE_MATH_SHIMS_ISINF_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// ISINF SHIM
53//
54//=================================================================================================
55
56//*************************************************************************************************
63template< typename T, EnableIf_t< IsArithmetic_v<T> >* = nullptr >
64inline bool isinf( T a ) noexcept
65{
66 return std::isinf( a );
67}
68//*************************************************************************************************
69
70} // namespace blaze
71
72#endif
Header file for the EnableIf class template.
Header file for the IsArithmetic type trait.
bool isinf(const DenseMatrix< MT, SO > &dm)
Checks the given dense matrix for infinite elements.
Definition DenseMatrix.h:1339