Blaze  3.6
YieldsTriangular.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_YIELDSTRIANGULAR_H_
36 #define _BLAZE_MATH_TYPETRAITS_YIELDSTRIANGULAR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
67 template< typename OP, typename MT, typename... MTs >
69  : public BoolConstant< YieldsLower_v<OP,MT,MTs...> || YieldsUpper_v<OP,MT,MTs...> >
70 {};
71 //*************************************************************************************************
72 
73 
74 //*************************************************************************************************
79 template< typename OP, typename MT, typename... MTs >
80 struct YieldsTriangular< const OP, MT, MTs... >
81  : public YieldsTriangular<OP,MT,MTs...>
82 {};
84 //*************************************************************************************************
85 
86 
87 //*************************************************************************************************
92 template< typename OP, typename MT, typename... MTs >
93 struct YieldsTriangular< volatile OP, MT, MTs... >
94  : public YieldsTriangular<OP,MT,MTs...>
95 {};
97 //*************************************************************************************************
98 
99 
100 //*************************************************************************************************
105 template< typename OP, typename MT, typename... MTs >
106 struct YieldsTriangular< const volatile OP, MT, MTs... >
107  : public YieldsTriangular<OP,MT,MTs...>
108 {};
110 //*************************************************************************************************
111 
112 
113 //*************************************************************************************************
126 template< typename OP, typename MT, typename... MTs >
127 constexpr bool YieldsTriangular_v = YieldsTriangular<OP,MT,MTs...>::value;
128 //*************************************************************************************************
129 
130 } // namespace blaze
131 
132 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Compile time check for operations on matrices.This type trait tests whether or not the given operatio...
Definition: YieldsTriangular.h:68
Header file for the YieldsUpper type trait.
Header file for the YieldsLower type trait.
Header file for the IntegralConstant class template.
constexpr bool YieldsTriangular_v
Auxiliary variable template for the YieldsTriangular type trait.The YieldsTriangular_v variable templ...
Definition: YieldsTriangular.h:127