Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsSubmatrix.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISSUBMATRIX_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISSUBMATRIX_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/views/Forward.h
>
44
#include <
blaze/util/IntegralConstant.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
88
template
<
typename
T >
89
struct
IsSubmatrix
90
:
public
FalseType
91
{};
92
//*************************************************************************************************
93
94
95
//*************************************************************************************************
100
template
<
typename
MT,
AlignmentFlag
AF,
bool
SO,
bool
DF,
size_t
... CSAs >
101
struct
IsSubmatrix
< Submatrix<MT,AF,SO,DF,CSAs...> >
102
:
public
TrueType
103
{};
105
//*************************************************************************************************
106
107
108
//*************************************************************************************************
113
template
<
typename
MT,
AlignmentFlag
AF,
bool
SO,
bool
DF,
size_t
... CSAs >
114
struct
IsSubmatrix< const Submatrix<MT,AF,SO,DF,CSAs...> >
115
:
public
TrueType
116
{};
118
//*************************************************************************************************
119
120
121
//*************************************************************************************************
126
template
<
typename
MT,
AlignmentFlag
AF,
bool
SO,
bool
DF,
size_t
... CSAs >
127
struct
IsSubmatrix
< volatile Submatrix<MT,AF,SO,DF,CSAs...> >
128
:
public
TrueType
129
{};
131
//*************************************************************************************************
132
133
134
//*************************************************************************************************
139
template
<
typename
MT,
AlignmentFlag
AF,
bool
SO,
bool
DF,
size_t
... CSAs >
140
struct
IsSubmatrix
< const volatile Submatrix<MT,AF,SO,DF,CSAs...> >
141
:
public
TrueType
142
{};
144
//*************************************************************************************************
145
146
147
//*************************************************************************************************
160
template
<
typename
T >
161
constexpr
bool
IsSubmatrix_v
=
IsSubmatrix<T>::value
;
162
//*************************************************************************************************
163
164
}
// namespace blaze
165
166
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::IsSubmatrix_v
constexpr bool IsSubmatrix_v
Auxiliary variable template for the IsSubmatrix type trait.
Definition
IsSubmatrix.h:161
blaze::AlignmentFlag
AlignmentFlag
Alignment flag for (un-)aligned vectors and matrices.
Definition
AlignmentFlag.h:63
blaze::FalseType
BoolConstant< false > FalseType
Type/value traits base class.
Definition
IntegralConstant.h:121
blaze::TrueType
BoolConstant< true > TrueType
Type traits base class.
Definition
IntegralConstant.h:132
Forward.h
Header file for all forward declarations for views.
blaze::IsSubmatrix
Compile time check for submatrices.
Definition
IsSubmatrix.h:91
Generated by
1.18.0