ColumnExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_COLUMNEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_COLUMNEXPRTRAIT_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>
58 
59 
60 namespace blaze {
61 
62 //=================================================================================================
63 //
64 // CLASS DEFINITION
65 //
66 //=================================================================================================
67 
68 //*************************************************************************************************
77 template< typename MT > // Type of the matrix operand
79 {
80  private:
81  //**struct Failure******************************************************************************
83  struct Failure { using Type = INVALID_TYPE; };
85  //**********************************************************************************************
86 
87  //**struct Result*******************************************************************************
89  template< typename T >
90  struct Result {
92  };
94  //**********************************************************************************************
95 
96  //**********************************************************************************************
98  using Tmp = RemoveReference_<MT>;
100  //**********************************************************************************************
101 
102  public:
103  //**********************************************************************************************
105  using Type = typename If_< Or< IsComputation<Tmp>, IsTransExpr<Tmp> >
108  , Failure >
110  , Result<Tmp>
111  , Failure >
112  >::Type;
114  //**********************************************************************************************
115 };
116 //*************************************************************************************************
117 
118 
119 //*************************************************************************************************
132 template< typename MT > // Type of the matrix operand
134 //*************************************************************************************************
135 
136 } // namespace blaze
137 
138 #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 IsColumnMajorMatrix 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 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.
Reference to a specific column of a dense or sparse matrix.The Column template represents a reference...
Definition: BaseTemplate.h:354
typename ColumnExprTrait< MT >::Type ColumnExprTrait_
Auxiliary alias declaration for the ColumnExprTrait type trait.The ColumnExprTrait_ alias declaration...
Definition: ColumnExprTrait.h:133
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
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.
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 IsComputation type trait class.
Evaluation of the expression type type of a column operation.Via this type trait it is possible to ev...
Definition: ColumnExprTrait.h:78