Blaze  3.6
IsZero.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_ISZERO_H_
36 #define _BLAZE_MATH_SHIMS_ISZERO_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
45 #include <blaze/system/Inline.h>
46 #include <blaze/util/EnableIf.h>
48 
49 
50 namespace blaze {
51 
52 //=================================================================================================
53 //
54 // ISZERO SHIM
55 //
56 //=================================================================================================
57 
58 //*************************************************************************************************
100 template< bool RF // Relaxation flag
101  , typename Type > // Type of the given value/object
103 {
104  return isDefault<RF>( v );
105 }
106 //*************************************************************************************************
107 
108 
109 //*************************************************************************************************
151 template< typename Type > // Type of the given value/object
152 BLAZE_ALWAYS_INLINE bool isZero( const Type& v ) noexcept
153 {
154  return isZero<relaxed>( v );
155 }
156 //*************************************************************************************************
157 
158 } // namespace blaze
159 
160 #endif
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:677
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.The EnableIf_t alias declaration provides a convenient...
Definition: EnableIf.h:138
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the EnableIf class template.
Header file for the IsNumeric type trait.
Header file for the relaxation flag types.
Header file for the isDefault shim.
System settings for the inline keywords.