DeclHermExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_DECLHERMEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_DECLHERMEXPRTRAIT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
50 #include <blaze/util/InvalidType.h>
51 #include <blaze/util/mpl/If.h>
52 #include <blaze/util/mpl/Or.h>
57 
58 
59 namespace blaze {
60 
61 //=================================================================================================
62 //
63 // CLASS DEFINITION
64 //
65 //=================================================================================================
66 
67 //*************************************************************************************************
77 template< typename T > // Type of the declherm operand
79 {
80  private:
81  //**struct Failure******************************************************************************
83  struct Failure { using Type = INVALID_TYPE; };
85  //**********************************************************************************************
86 
87  //**********************************************************************************************
89  using Tmp = If_< IsMatrix<T>
94  , If_< IsRowMajorMatrix<T>
97  , Failure >;
99  //**********************************************************************************************
100 
101  public:
102  //**********************************************************************************************
104  using Type = typename If_< Or< IsConst<T>, IsVolatile<T>, IsReference<T> >
106  , Tmp >::Type;
108  //**********************************************************************************************
109 };
110 //*************************************************************************************************
111 
112 
113 //*************************************************************************************************
126 template< typename T > // Type of the declherm operand
128 //*************************************************************************************************
129 
130 } // namespace blaze
131 
132 #endif
Evaluation of the expression type of a dense matrix declherm operation.Via this type trait it is poss...
Definition: TDMatDeclHermExprTrait.h:75
Evaluation of the expression type of a sparse matrix declherm operation.Via this type trait it is pos...
Definition: TSMatDeclHermExprTrait.h:75
Compile time check for volatile data types.The IsVolatile type trait tests whether or not the given t...
Definition: IsVolatile.h:75
Header file for the TSMatDeclHermExprTrait class template.
Header file for the IsVolatile type trait.
Header file for the IsMatrix type trait.
Evaluation of the return type of an Hermitian declaration (declherm) expression.Via this type trait i...
Definition: DeclHermExprTrait.h:78
Header file for the Decay type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
Header file for the Or class template.
Header file for the TDMatDeclHermExprTrait class template.
Evaluation of the expression type of a sparse matrix declherm operation.Via this type trait it is pos...
Definition: SMatDeclHermExprTrait.h:75
Header file for the SMatDeclHermExprTrait class template.
Evaluation of the expression type of a dense matrix declherm operation.Via this type trait it is poss...
Definition: DMatDeclHermExprTrait.h:75
Header file for the IsDenseMatrix type trait.
Header file for the IsConst type trait.
Utility type for generic codes.
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:160
typename DeclHermExprTrait< T >::Type DeclHermExprTrait_
Auxiliary alias declaration for the DeclHermExprTrait class template.The DeclHermExprTrait_ alias dec...
Definition: DeclHermExprTrait.h:127
Header file for the DMatDeclHermExprTrait class template.
Header file for the IsReference type trait.
Header file for the IsRowMajorMatrix type trait.
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:75