Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsStrictlyLower.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISSTRICTLYLOWER_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISSTRICTLYLOWER_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsExpression.h
>
44
#include <
blaze/util/EnableIf.h
>
45
#include <
blaze/util/IntegralConstant.h
>
46
#include <
blaze/util/typetraits/IsSame.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// CLASS DEFINITION
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
59
template
<
typename
T >
struct
IsStrictlyLower
;
61
//*************************************************************************************************
62
63
64
//*************************************************************************************************
69
template
<
typename
T
70
,
typename
=
void
>
71
struct
IsStrictlyLowerHelper
72
:
public
FalseType
73
{};
74
75
template
<
typename
T >
// Type of the operand
76
struct
IsStrictlyLowerHelper< T,
EnableIf_t
<
IsExpression_v
<T> && !
IsSame_v<T,typename T::ResultType>
> >
77
:
public
IsStrictlyLower< typename T::ResultType >::Type
78
{};
80
//*************************************************************************************************
81
82
83
//*************************************************************************************************
113
template
<
typename
T >
114
struct
IsStrictlyLower
115
:
public
IsStrictlyLowerHelper<T>
116
{};
117
//*************************************************************************************************
118
119
120
//*************************************************************************************************
125
template
<
typename
T >
126
struct
IsStrictlyLower
< const T >
127
:
public
IsStrictlyLower
<T>
128
{};
130
//*************************************************************************************************
131
132
133
//*************************************************************************************************
138
template
<
typename
T >
139
struct
IsStrictlyLower< volatile T >
140
:
public
IsStrictlyLower<T>
141
{};
143
//*************************************************************************************************
144
145
146
//*************************************************************************************************
151
template
<
typename
T >
152
struct
IsStrictlyLower
< const volatile T >
153
:
public
IsStrictlyLower
<T>
154
{};
156
//*************************************************************************************************
157
158
159
//*************************************************************************************************
172
template
<
typename
T >
173
constexpr
bool
IsStrictlyLower_v
=
IsStrictlyLower<T>::value
;
174
//*************************************************************************************************
175
176
}
// namespace blaze
177
178
#endif
EnableIf.h
Header file for the EnableIf class template.
IntegralConstant.h
Header file for the IntegralConstant class template.
IsExpression.h
Header file for the IsExpression type trait class.
IsSame.h
Header file for the IsSame and IsStrictlySame type traits.
blaze::IsExpression_v
constexpr bool IsExpression_v
Auxiliary variable template for the IsExpression type trait.
Definition
IsExpression.h:114
blaze::IsStrictlyLower_v
constexpr bool IsStrictlyLower_v
Auxiliary variable template for the IsStrictlyLower type trait.
Definition
IsStrictlyLower.h:173
blaze::IsSame_v
constexpr bool IsSame_v
Auxiliary variable template for the IsSame type trait.
Definition
IsSame.h:159
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::EnableIf_t
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition
EnableIf.h:138
blaze::IsStrictlyLower
Compile time check for strictly lower triangular matrices.
Definition
IsStrictlyLower.h:116
Generated by
1.18.0