Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
blaze
math
traits
TDMatDMatSubExprTrait.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_TRAITS_TDMATDMATSUBEXPRTRAIT_H_
23
#define _BLAZE_MATH_TRAITS_TDMATDMATSUBEXPRTRAIT_H_
24
25
26
//*************************************************************************************************
27
// Includes
28
//*************************************************************************************************
29
30
#include <
blaze/math/expressions/Forward.h
>
31
#include <
blaze/math/typetraits/IsColumnMajorMatrix.h
>
32
#include <
blaze/math/typetraits/IsDenseMatrix.h
>
33
#include <
blaze/math/typetraits/IsRowMajorMatrix.h
>
34
#include <
blaze/util/InvalidType.h
>
35
#include <
blaze/util/SelectType.h
>
36
#include <
blaze/util/typetraits/IsConst.h
>
37
#include <
blaze/util/typetraits/IsReference.h
>
38
#include <
blaze/util/typetraits/IsVolatile.h
>
39
#include <
blaze/util/typetraits/RemoveCV.h
>
40
#include <
blaze/util/typetraits/RemoveReference.h
>
41
42
43
namespace
blaze {
44
45
//=================================================================================================
46
//
47
// CLASS DEFINITION
48
//
49
//=================================================================================================
50
51
//*************************************************************************************************
61
template
<
typename
MT1
// Type of the left-hand side column-major dense matrix
62
,
typename
MT2 >
// Type of the right-hand side row-major dense matrix
63
struct
TDMatDMatSubExprTrait
64
{
65
private
:
66
//**********************************************************************************************
68
enum
{ qualified =
IsConst<MT1>::value
||
IsVolatile<MT1>::value
||
IsReference<MT1>::value
||
69
IsConst<MT2>::value
||
IsVolatile<MT2>::value
||
IsReference<MT2>::value
};
71
//**********************************************************************************************
72
73
//**********************************************************************************************
75
typedef
SelectType< IsDenseMatrix<MT1>::value
&&
IsColumnMajorMatrix<MT1>::value
&&
76
IsDenseMatrix<MT2>::value
&&
IsRowMajorMatrix<MT2>::value
77
,
DMatTDMatSubExpr<MT1,MT2>
, INVALID_TYPE > Tmp;
78
79
typedef
typename
RemoveReference< typename RemoveCV<MT1>::Type
>::Type Type1;
80
typedef
typename
RemoveReference< typename RemoveCV<MT2>::Type
>::Type Type2;
82
//**********************************************************************************************
83
84
public
:
85
//**********************************************************************************************
87
typedef
typename
SelectType< qualified, TDMatDMatSubExprTrait<Type1,Type2>
, Tmp >::Type::Type Type;
89
//**********************************************************************************************
90
};
91
//*************************************************************************************************
92
93
}
// namespace blaze
94
95
#endif
Generated on Fri May 24 2013 16:39:56 by
1.8.3.1