DeclDiagExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_DECLDIAGEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_DECLDIAGEXPRTRAIT_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 decldiag 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 decldiag operand
128 //*************************************************************************************************
129 
130 } // namespace blaze
131 
132 #endif
Header file for the DMatDeclDiagExprTrait class template.
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 TDMatDeclDiagExprTrait class template.
Header file for the IsVolatile type trait.
Header file for the IsMatrix type trait.
Header file for the Decay type trait.
Evaluation of the expression type of a sparse matrix decldiag operation.Via this type trait it is pos...
Definition: TSMatDeclDiagExprTrait.h:75
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.
Evaluation of the expression type of a dense matrix decldiag operation.Via this type trait it is poss...
Definition: TDMatDeclDiagExprTrait.h:75
Header file for the IsDenseMatrix type trait.
typename DeclDiagExprTrait< T >::Type DeclDiagExprTrait_
Auxiliary alias declaration for the DeclDiagExprTrait class template.The DeclDiagExprTrait_ alias dec...
Definition: DeclDiagExprTrait.h:127
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
Header file for the IsReference type trait.
Header file for the IsRowMajorMatrix type trait.
Header file for the SMatDeclDiagExprTrait class template.
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:75
Evaluation of the expression type of a dense matrix decldiag operation.Via this type trait it is poss...
Definition: DMatDeclDiagExprTrait.h:75
Evaluation of the return type of a diagonal declaration (decldiag) expression.Via this type trait it ...
Definition: DeclDiagExprTrait.h:78
Evaluation of the expression type of a sparse matrix decldiag operation.Via this type trait it is pos...
Definition: SMatDeclDiagExprTrait.h:75
Header file for the TSMatDeclDiagExprTrait class template.