Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
shims
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/math/typetraits/IsScalar.h
>
45
#include <
blaze/system/Inline.h
>
46
#include <
blaze/util/EnableIf.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// ISDIVISOR SHIM
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
78
template
<
typename
Type, EnableIf_t< IsScalar_v<Type> >* =
nullptr
>
79
BLAZE_ALWAYS_INLINE
bool
isDivisor
(
const
Type
& v )
80
{
81
return
v !=
Type
{};
82
}
83
//*************************************************************************************************
84
85
}
// namespace blaze
86
87
#endif
EnableIf.h
Header file for the EnableIf class template.
IsScalar.h
Header file for the IsScalar type trait.
blaze::Type
blaze::isDivisor
bool isDivisor(const DenseVector< VT, TF > &dv)
Returns whether the given dense vector is a valid divisor.
Definition
DenseVector.h:1261
BLAZE_ALWAYS_INLINE
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition
Inline.h:85
Equal.h
Header file for the equal shim.
Inline.h
System settings for the inline keywords.
Generated by
1.18.0