IsDiagonal.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISDIAGONAL_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISDIAGONAL_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 #include <blaze/util/mpl/And.h>
47 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // CLASS DEFINITION
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
89 template< typename T >
90 struct IsDiagonal : public BoolConstant< And< IsLower<T>, IsUpper<T> >::value >
91 {};
92 //*************************************************************************************************
93 
94 
95 //*************************************************************************************************
100 template< typename T >
101 struct IsDiagonal< const T > : public IsDiagonal<T>
102 {};
104 //*************************************************************************************************
105 
106 
107 //*************************************************************************************************
112 template< typename T >
113 struct IsDiagonal< volatile T > : public IsDiagonal<T>
114 {};
116 //*************************************************************************************************
117 
118 
119 //*************************************************************************************************
124 template< typename T >
125 struct IsDiagonal< const volatile T > : public IsDiagonal<T>
126 {};
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:71
Header file for the And class template.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the IsLower type trait.
Compile time check for diagonal matrices.This type trait tests whether or not the given template para...
Definition: IsDiagonal.h:90
Header file for the IntegralConstant class template.
Header file for the IsUpper type trait.