Blaze  3.6
IsMatMatKronExpr.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_ISMATMATKRONEXPR_H_
36 #define _BLAZE_MATH_TYPETRAITS_ISMATMATKRONEXPR_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
45 
46 
47 namespace blaze {
48 
49 //=================================================================================================
50 //
51 // CLASS DEFINITION
52 //
53 //=================================================================================================
54 
55 //*************************************************************************************************
60 template< typename T >
61 struct IsMatMatKronExprHelper
62 {
63  private:
64  //**********************************************************************************************
65  static T* create();
66 
67  template< typename MT >
68  static TrueType test( const MatMatKronExpr<MT>* );
69 
70  template< typename MT >
71  static TrueType test( const volatile MatMatKronExpr<MT>* );
72 
73  static FalseType test( ... );
74  //**********************************************************************************************
75 
76  public:
77  //**********************************************************************************************
78  using Type = decltype( test( create() ) );
79  //**********************************************************************************************
80 };
82 //*************************************************************************************************
83 
84 
85 //*************************************************************************************************
98 template< typename T >
100  : public IsMatMatKronExprHelper<T>::Type
101 {};
102 //*************************************************************************************************
103 
104 
105 //*************************************************************************************************
110 template< typename T >
111 struct IsMatMatKronExpr<T&>
112  : public FalseType
113 {};
115 //*************************************************************************************************
116 
117 
118 //*************************************************************************************************
131 template< typename T >
133 //*************************************************************************************************
134 
135 } // namespace blaze
136 
137 #endif
BoolConstant< false > FalseType
Type/value traits base class.The FalseType class is used as base class for type traits and value trai...
Definition: IntegralConstant.h:121
Compile time check whether the given type is a matrix/matrix Kronecker product expression template....
Definition: IsMatMatKronExpr.h:99
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
constexpr bool IsMatMatKronExpr_v
Auxiliary variable template for the IsMatMatKronExpr type trait.The IsMatMatKronExpr_v variable templ...
Definition: IsMatMatKronExpr.h:132
BoolConstant< true > TrueType
Type traits base class.The TrueType class is used as base class for type traits and value traits that...
Definition: IntegralConstant.h:132
Header file for the MatMatKronExpr base class.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the IntegralConstant class template.