RowExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_ROWEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_ROWEXPRTRAIT_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>
59 
60 
61 namespace blaze {
62 
63 //=================================================================================================
64 //
65 // CLASS DEFINITION
66 //
67 //=================================================================================================
68 
69 //*************************************************************************************************
78 template< typename MT > // Type of the matrix operand
80 {
81  private:
82  //**struct Failure******************************************************************************
84  struct Failure { using Type = INVALID_TYPE; };
86  //**********************************************************************************************
87 
88  //**struct Result*******************************************************************************
90  template< typename T >
91  struct Result {
93  };
95  //**********************************************************************************************
96 
97  //**********************************************************************************************
99  using Tmp = RemoveReference_<MT>;
101  //**********************************************************************************************
102 
103  public:
104  //**********************************************************************************************
106  using Type = typename If_< Or< IsComputation<Tmp>, IsTransExpr<Tmp> >
109  , Failure >
111  , Result<Tmp>
112  , Failure >
113  >::Type;
115  //**********************************************************************************************
116 };
117 //*************************************************************************************************
118 
119 
120 //*************************************************************************************************
133 template< typename MT > // Type of the matrix operand
135 //*************************************************************************************************
136 
137 } // namespace blaze
138 
139 #endif
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 RemoveCV type trait.
Header file for the IsTransExpr type trait class.
Header file for the IsVolatile type trait.
Header file for the IsMatrix type trait.
Header file for the Decay type trait.
typename RowExprTrait< MT >::Type RowExprTrait_
Auxiliary alias declaration for the RowExprTrait type trait.The RowExprTrait_ alias declaration provi...
Definition: RowExprTrait.h:134
Header file for the IsSymmetric 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.
Compile time check for symmetric matrices.This type trait tests whether or not the given template par...
Definition: IsSymmetric.h:85
typename RemoveReference< T >::Type RemoveReference_
Auxiliary alias declaration for the RemoveReference type trait.The RemoveReference_ alias declaration...
Definition: RemoveReference.h:95
Evaluation of the expression type type of a row operation.Via this type trait it is possible to evalu...
Definition: RowExprTrait.h:79
Compile time check for dense matrix types.This type trait tests whether or not the given template par...
Definition: IsDenseMatrix.h:78
Header file for the IsDenseMatrix type trait.
Reference to a specific row of a dense or sparse matrix.The Row template represents a reference to a ...
Definition: Forward.h:48
Compile time check whether the given type is a transposition expression template.This type trait clas...
Definition: IsTransExpr.h:71
Header file for all forward declarations for views.
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 RemoveReference type trait.
Header file for the IsRowMajorMatrix type trait.
Header file for the IsComputation type trait class.