Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsIdentity.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISIDENTITY_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISIDENTITY_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsUniLower.h
>
44
#include <
blaze/math/typetraits/IsUniUpper.h
>
45
#include <
blaze/util/IntegralConstant.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
77
template
<
typename
T >
78
struct
IsIdentity
79
:
public
BoolConstant
< IsUniLower_v<T> && IsUniUpper_v<T> >
80
{};
81
//*************************************************************************************************
82
83
84
//*************************************************************************************************
89
template
<
typename
T >
90
struct
IsIdentity
< const T >
91
:
public
IsIdentity
<T>
92
{};
94
//*************************************************************************************************
95
96
97
//*************************************************************************************************
102
template
<
typename
T >
103
struct
IsIdentity< volatile T >
104
:
public
IsIdentity<T>
105
{};
107
//*************************************************************************************************
108
109
110
//*************************************************************************************************
115
template
<
typename
T >
116
struct
IsIdentity
< const volatile T >
117
:
public
IsIdentity
<T>
118
{};
120
//*************************************************************************************************
121
122
123
//*************************************************************************************************
136
template
<
typename
T >
137
constexpr
bool
IsIdentity_v
=
IsIdentity<T>::value
;
138
//*************************************************************************************************
139
140
}
// namespace blaze
141
142
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsUniLower.h
Header file for the IsUniLower type trait.
IsUniUpper.h
Header file for the IsUniUpper type trait.
blaze::IsIdentity_v
constexpr bool IsIdentity_v
Auxiliary variable template for the IsIdentity type trait.
Definition
IsIdentity.h:137
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsIdentity
Compile time check for identity matrices.
Definition
IsIdentity.h:80
Generated by
1.18.0