ConjExprTrait.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TRAITS_CONJEXPRTRAIT_H_
36 #define _BLAZE_MATH_TRAITS_CONJEXPRTRAIT_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
57 #include <blaze/util/InvalidType.h>
58 #include <blaze/util/mpl/If.h>
59 #include <blaze/util/mpl/Or.h>
66 
67 
68 namespace blaze {
69 
70 //=================================================================================================
71 //
72 // CLASS DEFINITION
73 //
74 //=================================================================================================
75 
76 //*************************************************************************************************
86 template< typename T > // Type of the complex conjugate operand
88 {
89  private:
90  //**struct ScalarConj***************************************************************************
92  template< typename ST >
93  struct ScalarConj { typedef T Type; };
95  //**********************************************************************************************
96 
97  //**struct Failure******************************************************************************
99  struct Failure { typedef INVALID_TYPE Type; };
101  //**********************************************************************************************
102 
103  //**********************************************************************************************
105  typedef typename If< IsMatrix<T>
106  , typename If< IsDenseMatrix<T>
107  , typename If< IsRowMajorMatrix<T>
110  >::Type
111  , typename If< IsRowMajorMatrix<T>
114  >::Type
115  >::Type
116  , typename If< IsVector<T>
117  , typename If< IsDenseVector<T>
118  , typename If< IsRowVector<T>
121  >::Type
122  , typename If< IsRowVector<T>
125  >::Type
126  >::Type
127  , typename If< IsNumeric<T>
128  , ScalarConj<T>
129  , Failure
130  >::Type
131  >::Type
132  >::Type Tmp;
133 
134  typedef typename RemoveReference< typename RemoveCV<T>::Type >::Type Type1;
136  //**********************************************************************************************
137 
138  public:
139  //**********************************************************************************************
141  typedef typename If< Or< IsConst<T>, IsVolatile<T>, IsReference<T> >
142  , ConjExprTrait<Type1>, Tmp >::Type::Type Type;
144  //**********************************************************************************************
145 };
146 //*************************************************************************************************
147 
148 } // namespace blaze
149 
150 #endif
Evaluation of the expression type of a sparse vector complex conjugate operation.Via this type trait ...
Definition: TSVecConjExprTrait.h:75
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
Evaluation of the expression type of a sparse vector complex conjugate operation.Via this type trait ...
Definition: SVecConjExprTrait.h:75
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 TDVecConjExprTrait class template.
Header file for the RemoveCV type trait.
Evaluation of the expression type of a dense matrix complex conjugate operation.Via this type trait i...
Definition: DMatConjExprTrait.h:75
Header file for the DVecConjExprTrait class template.
Header file for the IsRowVector type trait.
Evaluation of the expression type of a dense vector complex conjugate operation.Via this type trait i...
Definition: DVecConjExprTrait.h:75
Header file for the TSMatConjExprTrait class template.
Evaluation of the expression type of a dense matrix complex conjugate operation.Via this type trait i...
Definition: TDMatConjExprTrait.h:75
Header file for the SMatConjExprTrait class template.
Evaluation of the expression type of a sparse matrix complex conjugate operation.Via this type trait ...
Definition: SMatConjExprTrait.h:75
Header file for the IsVolatile type trait.
Header file for the IsMatrix 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 IsVector type trait.
Header file for the IsDenseMatrix type trait.
Header file for the IsNumeric type trait.
Evaluation of the return type of a complex conjugate expression.Via this type trait it is possible to...
Definition: ConjExprTrait.h:87
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 TDMatConjExprTrait class template.
Header file for the TSVecConjExprTrait class template.
Header file for the DMatConjExprTrait class template.
Header file for the SVecConjExprTrait class template.
Evaluation of the expression type of a sparse matrix complex conjugate operation.Via this type trait ...
Definition: TSMatConjExprTrait.h:75
Header file for the IsReference type trait.
Header file for the RemoveReference type trait.
Header file for the IsDenseVector type trait.
Header file for the IsRowMajorMatrix type trait.
Evaluation of the expression type of a dense vector complex conjugate operation.Via this type trait i...
Definition: TDVecConjExprTrait.h:75
Compile time type check.This class tests whether the given template parameter T is a reference type (...
Definition: IsReference.h:94