Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsRowMajorMatrix.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISROWMAJORMATRIX_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISROWMAJORMATRIX_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/expressions/Forward.h
>
45
#include <
blaze/math/StorageOrder.h
>
46
#include <
blaze/util/IntegralConstant.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// CLASS DEFINITION
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
62
template
<
typename
MT >
63
TrueType
isRowMajorMatrix_backend(
const
volatile
Matrix<MT,rowMajor>
* );
64
65
FalseType
isRowMajorMatrix_backend( ... );
67
//*************************************************************************************************
68
69
70
//*************************************************************************************************
95
template
<
typename
T >
96
struct
IsRowMajorMatrix
97
:
public
decltype( isRowMajorMatrix_backend( std::declval<T*>() ) )
98
{};
99
//*************************************************************************************************
100
101
102
//*************************************************************************************************
107
template
<
typename
T >
108
struct
IsRowMajorMatrix
<T&>
109
:
public
FalseType
110
{};
112
//*************************************************************************************************
113
114
115
//*************************************************************************************************
128
template
<
typename
T >
129
constexpr
bool
IsRowMajorMatrix_v
=
IsRowMajorMatrix<T>::value
;
130
//*************************************************************************************************
131
132
}
// namespace blaze
133
134
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::Matrix
Base class for matrices.
Definition
Matrix.h:85
blaze::IsRowMajorMatrix_v
constexpr bool IsRowMajorMatrix_v
Auxiliary variable template for the IsRowMajorMatrix type trait.
Definition
IsRowMajorMatrix.h:129
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
StorageOrder.h
Header file for the matrix storage order types.
Forward.h
Header file for all forward declarations for expression class templates.
blaze::IsRowMajorMatrix
Compile time check for row-major matrix types.
Definition
IsRowMajorMatrix.h:98
Generated by
1.18.0