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>
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 { typedef INVALID_TYPE Type; };
86  //**********************************************************************************************
87 
88  //**struct DenseResult**************************************************************************
90  template< typename T >
91  struct DenseResult {
93  };
95  //**********************************************************************************************
96 
97  //**struct SparseResult*************************************************************************
99  template< typename T >
100  struct SparseResult {
102  };
104  //**********************************************************************************************
105 
106  //**********************************************************************************************
108  typedef typename RemoveReference<MT>::Type Tmp;
110  //**********************************************************************************************
111 
112  public:
113  //**********************************************************************************************
115  typedef typename If< Or< IsComputation<Tmp>, IsTransExpr<Tmp> >
118  , Failure
119  >::Type
120  , typename If< IsDenseMatrix<Tmp>
121  , DenseResult<Tmp>
122  , typename If< IsSparseMatrix<Tmp>
123  , SparseResult<Tmp>
124  , Failure
125  >::Type
126  >::Type
127  >::Type::Type Type;
129  //**********************************************************************************************
130 };
131 //*************************************************************************************************
132 
133 } // namespace blaze
134 
135 #endif
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
Compile time check for volatile data types.The IsVolatile type trait tests whether or not the given t...
Definition: IsVolatile.h:94
Header file for the IsSparseMatrix type trait.
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 RemoveVolatile type trait.
Header file for the IsVolatile 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 matrix.The DenseColumn template represents a reference to a...
Definition: DenseColumn.h:338
Compile time check for symmetric matrices.This type trait tests whether or not the given template par...
Definition: IsSymmetric.h:85
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:88
Header file for all forward declarations for views.
Removal of reference modifiers.The RemoveCV type trait removes any reference modifiers from the given...
Definition: RemoveReference.h:69
Header file for the IsConst type trait.
Utility type for generic codes.
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:79
Reference to a specific column of a sparse matrix.The SparseColumn template represents a reference to...
Definition: Forward.h:51