Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsDiagonal.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISDIAGONAL_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISDIAGONAL_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsLower.h
>
44
#include <
blaze/math/typetraits/IsUpper.h
>
45
#include <
blaze/util/IntegralConstant.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
88
template
<
typename
T >
89
struct
IsDiagonal
90
:
public
BoolConstant
< IsLower_v<T> && IsUpper_v<T> >
91
{};
92
//*************************************************************************************************
93
94
95
//*************************************************************************************************
100
template
<
typename
T >
101
struct
IsDiagonal
< const T >
102
:
public
IsDiagonal
<T>
103
{};
105
//*************************************************************************************************
106
107
108
//*************************************************************************************************
113
template
<
typename
T >
114
struct
IsDiagonal< volatile T >
115
:
public
IsDiagonal<T>
116
{};
118
//*************************************************************************************************
119
120
121
//*************************************************************************************************
126
template
<
typename
T >
127
struct
IsDiagonal
< const volatile T >
128
:
public
IsDiagonal
<T>
129
{};
131
//*************************************************************************************************
132
133
134
//*************************************************************************************************
147
template
<
typename
T >
148
constexpr
bool
IsDiagonal_v
=
IsDiagonal<T>::value
;
149
//*************************************************************************************************
150
151
}
// namespace blaze
152
153
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsLower.h
Header file for the IsLower type trait.
IsUpper.h
Header file for the IsUpper type trait.
blaze::IsDiagonal_v
constexpr bool IsDiagonal_v
Auxiliary variable template for the IsDiagonal type trait.
Definition
IsDiagonal.h:148
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsDiagonal
Compile time check for diagonal matrices.
Definition
IsDiagonal.h:91
Generated by
1.18.0