Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
traits
ColumnTrait.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TRAITS_COLUMNTRAIT_H_
36
#define _BLAZE_MATH_TRAITS_COLUMNTRAIT_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/Infinity.h
>
45
#include <
blaze/util/Types.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
58
template
<
typename
,
size_t
... >
struct
ColumnTrait
;
59
template
<
typename
,
size_t
,
typename
=
void
>
struct
ColumnTraitEval1;
60
template
<
typename
,
size_t
,
typename
=
void
>
struct
ColumnTraitEval2;
62
//*************************************************************************************************
63
64
65
//*************************************************************************************************
67
template
<
size_t
I,
typename
T >
68
auto
evalColumnTrait(
const
volatile
T& ) -> ColumnTraitEval1<T,I>;
69
70
template
<
typename
T >
71
auto
evalColumnTrait(
const
volatile
T& ) -> ColumnTraitEval1<T,inf>;
73
//*************************************************************************************************
74
75
76
//*************************************************************************************************
121
template
<
typename
MT
// Type of the matrix
122
,
size_t
... CCAs >
// Compile time column arguments
123
struct
ColumnTrait
124
:
public
decltype( evalColumnTrait<CCAs...>( std::declval<MT&>() ) )
125
{};
126
//*************************************************************************************************
127
128
129
//*************************************************************************************************
142
template
<
typename
MT
// Type of the matrix
143
,
size_t
... CCAs >
// Compile time column arguments
144
using
ColumnTrait_t
=
typename
ColumnTrait
<MT,CCAs...>
::Type
;
145
//*************************************************************************************************
146
147
148
//*************************************************************************************************
153
template
<
typename
MT
// Type of the matrix
154
,
size_t
I
// Compile time column index
155
,
typename
>
// Restricting condition
156
struct
ColumnTraitEval1
157
:
public
ColumnTraitEval2<MT,I>
158
{};
160
//*************************************************************************************************
161
162
163
//*************************************************************************************************
168
template
<
typename
MT
// Type of the matrix
169
,
size_t
I
// Compile time column index
170
,
typename
>
// Restricting condition
171
struct
ColumnTraitEval2
172
{};
174
//*************************************************************************************************
175
176
}
// namespace blaze
177
178
#endif
Infinity.h
Numerical infinity for built-in data types.
blaze::Type
blaze::ColumnTrait_t
typename ColumnTrait< MT, CCAs... >::Type ColumnTrait_t
Auxiliary alias declaration for the ColumnTrait type trait.
Definition
ColumnTrait.h:144
blaze::ColumnTrait
Base template for the ColumnTrait class.
Definition
ColumnTrait.h:125
Types.h
Header file for basic type definitions.
Generated by
1.18.0