IsDivisor.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_SHIMS_ISDIVISOR_H_
36 #define _BLAZE_MATH_SHIMS_ISDIVISOR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
43 #include <blaze/math/shims/Equal.h>
44 #include <blaze/system/Inline.h>
45 #include <blaze/util/DisableIf.h>
46 #include <blaze/util/EnableIf.h>
48 #include <blaze/util/Unused.h>
49 
50 
51 namespace blaze {
52 
53 //=================================================================================================
54 //
55 // ISDIVISOR SHIM
56 //
57 //=================================================================================================
58 
59 //*************************************************************************************************
80 template< typename Type, typename = EnableIf_< IsNumeric<Type> > >
81 BLAZE_ALWAYS_INLINE bool isDivisor( const Type& v )
82 {
83  return v != Type(0);
84 }
85 //*************************************************************************************************
86 
87 } // namespace blaze
88 
89 #endif
Header file for the UNUSED_PARAMETER function template.
Header file for the DisableIf class template.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the equal shim.
Header file for the EnableIf class template.
Header file for the IsNumeric type trait.
bool isDivisor(const DenseVector< VT, TF > &dv)
Returns whether the given dense vector is a valid divisor.
Definition: DenseVector.h:444
System settings for the inline keywords.