YieldsDiagonal.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_YIELDSDIAGONAL_H_
36 #define _BLAZE_MATH_TYPETRAITS_YIELDSDIAGONAL_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
66 template< typename OP, typename MT, typename... MTs >
68  : public BoolConstant< YieldsLower_v<OP,MT,MTs...> && YieldsUpper_v<OP,MT,MTs...> >
69 {};
70 //*************************************************************************************************
71 
72 
73 //*************************************************************************************************
78 template< typename OP, typename MT, typename... MTs >
79 struct YieldsDiagonal< const OP, MT, MTs... >
80  : public YieldsDiagonal<OP,MT,MTs...>
81 {};
83 //*************************************************************************************************
84 
85 
86 //*************************************************************************************************
91 template< typename OP, typename MT, typename... MTs >
92 struct YieldsDiagonal< volatile OP, MT, MTs... >
93  : public YieldsDiagonal<OP,MT,MTs...>
94 {};
96 //*************************************************************************************************
97 
98 
99 //*************************************************************************************************
104 template< typename OP, typename MT, typename... MTs >
105 struct YieldsDiagonal< const volatile OP, MT, MTs... >
106  : public YieldsDiagonal<OP,MT,MTs...>
107 {};
109 //*************************************************************************************************
110 
111 
112 //*************************************************************************************************
125 template< typename OP, typename MT, typename... MTs >
126 constexpr bool YieldsDiagonal_v = YieldsDiagonal<OP,MT,MTs...>::value;
127 //*************************************************************************************************
128 
129 } // namespace blaze
130 
131 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
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: YieldsDiagonal.h:67
constexpr bool YieldsDiagonal_v
Auxiliary variable template for the YieldsDiagonal type trait.The YieldsDiagonal_v variable template ...
Definition: YieldsDiagonal.h:126
Header file for the YieldsUpper type trait.
Header file for the YieldsLower type trait.
Header file for the IntegralConstant class template.