Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
traits
BandTrait.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TRAITS_BANDTRAIT_H_
36
#define _BLAZE_MATH_TRAITS_BANDTRAIT_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <utility>
44
#include <
blaze/math/Infinity.h
>
45
#include <
blaze/util/InvalidType.h
>
46
#include <
blaze/util/Types.h
>
47
48
49
namespace
blaze {
50
51
//=================================================================================================
52
//
53
// CLASS DEFINITION
54
//
55
//=================================================================================================
56
57
//*************************************************************************************************
59
template
<
typename
, ptrdiff_t... >
struct
BandTrait
;
60
template
<
typename
, ptrdiff_t,
typename
=
void
>
struct
BandTraitEval1;
61
template
<
typename
, ptrdiff_t,
typename
=
void
>
struct
BandTraitEval2;
63
//*************************************************************************************************
64
65
66
//*************************************************************************************************
68
template
< ptrdiff_t I,
typename
T >
69
auto
evalBandTrait(
const
volatile
T& ) -> BandTraitEval1<T,I>;
70
71
template
<
typename
T >
72
auto
evalBandTrait(
const
volatile
T& ) -> BandTraitEval1<T,inf>;
74
//*************************************************************************************************
75
76
77
//*************************************************************************************************
122
template
<
typename
MT
// Type of the matrix
123
, ptrdiff_t... CBAs >
// Compile time band arguments
124
struct
BandTrait
125
:
public
decltype( evalBandTrait<CBAs...>( std::declval<MT&>() ) )
126
{};
127
//*************************************************************************************************
128
129
130
//*************************************************************************************************
143
template
<
typename
MT
// Type of the matrix
144
,
ptrdiff_t
... CBAs >
// Compile time band arguments
145
using
BandTrait_t
=
typename
BandTrait
<MT,CBAs...>
::Type
;
146
//*************************************************************************************************
147
148
149
//*************************************************************************************************
154
template
<
typename
MT
// Type of the matrix
155
,
ptrdiff_t
I
// Compile time band index
156
,
typename
>
// Restricting condition
157
struct
BandTraitEval1
158
:
public
BandTraitEval2<MT,I>
159
{};
161
//*************************************************************************************************
162
163
164
//*************************************************************************************************
169
template
<
typename
MT
// Type of the matrix
170
,
ptrdiff_t
I
// Compile time band index
171
,
typename
>
// Restricting condition
172
struct
BandTraitEval2
173
{};
175
//*************************************************************************************************
176
177
}
// namespace blaze
178
179
#endif
Infinity.h
Numerical infinity for built-in data types.
InvalidType.h
Utility type for generic codes.
blaze::Type
ptrdiff_t
Pointer difference type of the Blaze library.
blaze::BandTrait_t
typename BandTrait< MT, CBAs... >::Type BandTrait_t
Auxiliary alias declaration for the BandTrait type trait.
Definition
BandTrait.h:145
blaze::BandTrait
Base template for the BandTrait class.
Definition
BandTrait.h:126
Types.h
Header file for basic type definitions.
Generated by
1.18.0