Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsRowVector.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISROWVECTOR_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISROWVECTOR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/expressions/Forward.h
>
45
#include <
blaze/math/TransposeFlag.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
VT >
63
TrueType
isRowVector_backend(
const
volatile
Vector<VT,rowVector>
* );
64
65
FalseType
isRowVector_backend( ... );
67
//*************************************************************************************************
68
69
70
//*************************************************************************************************
92
template
<
typename
T >
93
struct
IsRowVector
94
:
public
decltype( isRowVector_backend( std::declval<T*>() ) )
95
{};
96
//*************************************************************************************************
97
98
99
//*************************************************************************************************
104
template
<
typename
T >
105
struct
IsRowVector
<T&>
106
:
public
FalseType
107
{};
109
//*************************************************************************************************
110
111
112
//*************************************************************************************************
125
template
<
typename
T >
126
constexpr
bool
IsRowVector_v
=
IsRowVector<T>::value
;
127
//*************************************************************************************************
128
129
}
// namespace blaze
130
131
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
blaze::Vector
Base class for N-dimensional vectors.
Definition
Vector.h:82
blaze::IsRowVector_v
constexpr bool IsRowVector_v
Auxiliary variable template for the IsRowVector type trait.
Definition
IsRowVector.h:126
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
TransposeFlag.h
Header file for the vector transpose flag types.
Forward.h
Header file for all forward declarations for expression class templates.
blaze::IsRowVector
Compile time check for row vector types.
Definition
IsRowVector.h:95
Generated by
1.18.0