Blaze  3.6
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 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // ISDIVISOR SHIM
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
78 template< typename Type, typename = EnableIf_t< IsNumeric_v<Type> > >
79 BLAZE_ALWAYS_INLINE bool isDivisor( const Type& v )
80 {
81  return v != Type(0);
82 }
83 //*************************************************************************************************
84 
85 } // namespace blaze
86 
87 #endif
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 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:1179
System settings for the inline keywords.