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/EnableIf.h>
47 #include <blaze/util/Unused.h>
48 
49 
50 namespace blaze {
51 
52 //=================================================================================================
53 //
54 // ISDIVISOR SHIM
55 //
56 //=================================================================================================
57 
58 //*************************************************************************************************
79 template< typename Type, typename = EnableIf_< IsNumeric<Type> > >
80 BLAZE_ALWAYS_INLINE bool isDivisor( const Type& v )
81 {
82  return v != Type(0);
83 }
84 //*************************************************************************************************
85 
86 } // namespace blaze
87 
88 #endif
Header file for the UNUSED_PARAMETER function 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:446
System settings for the inline keywords.