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
SMatSMatSubExprTrait.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_TRAITS_SMATSMATSUBEXPRTRAIT_H_
23
#define _BLAZE_MATH_TRAITS_SMATSMATSUBEXPRTRAIT_H_
24
25
26
//*************************************************************************************************
27
// Includes
28
//*************************************************************************************************
29
30
#include <
blaze/math/expressions/Forward.h
>
31
#include <
blaze/math/typetraits/IsRowMajorMatrix.h
>
32
#include <
blaze/math/typetraits/IsSparseMatrix.h
>
33
#include <
blaze/util/InvalidType.h
>
34
#include <
blaze/util/SelectType.h
>
35
#include <
blaze/util/typetraits/IsConst.h
>
36
#include <
blaze/util/typetraits/IsReference.h
>
37
#include <
blaze/util/typetraits/IsVolatile.h
>
38
#include <
blaze/util/typetraits/RemoveCV.h
>
39
#include <
blaze/util/typetraits/RemoveReference.h
>
40
41
42
namespace
blaze {
43
44
//=================================================================================================
45
//
46
// CLASS DEFINITION
47
//
48
//=================================================================================================
49
50
//*************************************************************************************************
60
template
<
typename
MT1
// Type of the left-hand side row-major sparse matrix
61
,
typename
MT2 >
// Type of the right-hand side row-major sparse matrix
62
struct
SMatSMatSubExprTrait
63
{
64
private
:
65
//**********************************************************************************************
67
enum
{ qualified =
IsConst<MT1>::value
||
IsVolatile<MT1>::value
||
IsReference<MT1>::value
||
68
IsConst<MT2>::value
||
IsVolatile<MT2>::value
||
IsReference<MT2>::value
};
70
//**********************************************************************************************
71
72
//**********************************************************************************************
74
typedef
SelectType< IsSparseMatrix<MT1>::value
&&
IsRowMajorMatrix<MT1>::value
&&
75
IsSparseMatrix<MT2>::value
&&
IsRowMajorMatrix<MT2>::value
76
,
SMatSMatSubExpr<MT1,MT2>
, INVALID_TYPE > Tmp;
77
78
typedef
typename
RemoveReference< typename RemoveCV<MT1>::Type
>::Type Type1;
79
typedef
typename
RemoveReference< typename RemoveCV<MT2>::Type
>::Type Type2;
81
//**********************************************************************************************
82
83
public
:
84
//**********************************************************************************************
86
typedef
typename
SelectType< qualified, SMatSMatSubExprTrait<Type1,Type2>
, Tmp >::Type::Type Type;
88
//**********************************************************************************************
89
};
90
//*************************************************************************************************
91
92
}
// namespace blaze
93
94
#endif
Generated on Sun Jul 28 2013 17:06:07 by
1.8.3.1