Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
IsTriangular.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_ISTRIANGULAR_H_
36
#define _BLAZE_MATH_TYPETRAITS_ISTRIANGULAR_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/math/typetraits/IsLower.h
>
44
#include <
blaze/math/typetraits/IsUpper.h
>
45
#include <
blaze/util/IntegralConstant.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
85
template
<
typename
T >
86
struct
IsTriangular
87
:
public
BoolConstant
< IsLower_v<T> || IsUpper_v<T> >
88
{};
89
//*************************************************************************************************
90
91
92
//*************************************************************************************************
105
template
<
typename
T >
106
constexpr
bool
IsTriangular_v
=
IsTriangular<T>::value
;
107
//*************************************************************************************************
108
109
}
// namespace blaze
110
111
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsLower.h
Header file for the IsLower type trait.
IsUpper.h
Header file for the IsUpper type trait.
blaze::IsTriangular_v
constexpr bool IsTriangular_v
Auxiliary variable template for the IsTriangular type trait.
Definition
IsTriangular.h:106
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::IsTriangular
Compile time check for triangular matrix types.
Definition
IsTriangular.h:88
Generated by
1.18.0