Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
traits
RowsTrait.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TRAITS_ROWSTRAIT_H_
36
#define _BLAZE_MATH_TRAITS_ROWSTRAIT_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/util/Types.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
57
template
<
typename
,
size_t
>
struct
RowsTrait
;
58
template
<
typename
,
size_t
,
typename
=
void
>
struct
RowsTraitEval1;
59
template
<
typename
,
size_t
,
typename
=
void
>
struct
RowsTraitEval2;
61
//*************************************************************************************************
62
63
64
//*************************************************************************************************
66
template
<
size_t
M ,
typename
T >
67
auto
evalRowsTrait(
const
volatile
T& ) -> RowsTraitEval1<T,M>;
69
//*************************************************************************************************
70
71
72
//*************************************************************************************************
117
template
<
typename
MT
// Type of the matrix
118
,
size_t
M >
// Number of compile time indices
119
struct
RowsTrait
120
:
public
decltype( evalRowsTrait<M>( std::declval<MT&>() ) )
121
{};
122
//*************************************************************************************************
123
124
125
//*************************************************************************************************
138
template
<
typename
MT
// Type of the matrix
139
,
size_t
M >
// Number of compile time indices
140
using
RowsTrait_t
=
typename
RowsTrait<MT,M>::Type
;
141
//*************************************************************************************************
142
143
144
//*************************************************************************************************
149
template
<
typename
MT
// Type of the matrix
150
,
size_t
M
// Number of compile time indices
151
,
typename
>
// Restricting condition
152
struct
RowsTraitEval1
153
:
public
RowsTraitEval2<MT,M>
154
{};
156
//*************************************************************************************************
157
158
159
//*************************************************************************************************
164
template
<
typename
MT
// Type of the matrix
165
,
size_t
M
// Number of compile time indices
166
,
typename
>
// Restricting condition
167
struct
RowsTraitEval2
168
{};
170
//*************************************************************************************************
171
172
}
// namespace blaze
173
174
#endif
blaze::RowsTrait_t
typename RowsTrait< MT, M >::Type RowsTrait_t
Auxiliary alias declaration for the RowsTrait type trait.
Definition
RowsTrait.h:140
blaze::RowsTrait
Base template for the RowsTrait class.
Definition
RowsTrait.h:121
Types.h
Header file for basic type definitions.
Generated by
1.18.0