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
TSVecTSVecAddExprTrait.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_TRAITS_TSVECTSVECADDEXPRTRAIT_H_
23
#define _BLAZE_MATH_TRAITS_TSVECTSVECADDEXPRTRAIT_H_
24
25
26
//*************************************************************************************************
27
// Includes
28
//*************************************************************************************************
29
30
#include <
blaze/math/expressions/Forward.h
>
31
#include <
blaze/math/typetraits/IsSparseVector.h
>
32
#include <
blaze/math/typetraits/IsTransposeVector.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
//*************************************************************************************************
61
template
<
typename
VT1
// Type of the left-hand side transpose sparse vector
62
,
typename
VT2 >
// Type of the right-hand side transpose sparse vector
63
struct
TSVecTSVecAddExprTrait
64
{
65
private
:
66
//**********************************************************************************************
68
enum
{ qualified =
IsConst<VT1>::value
||
IsVolatile<VT1>::value
||
IsReference<VT1>::value
||
69
IsConst<VT2>::value
||
IsVolatile<VT2>::value
||
IsReference<VT2>::value
};
71
//**********************************************************************************************
72
73
//**********************************************************************************************
75
typedef
SelectType< IsSparseVector<VT1>::value
&&
IsTransposeVector<VT1>::value
&&
76
IsSparseVector<VT2>::value
&&
IsTransposeVector<VT2>::value
77
,
SVecSVecAddExpr<VT1,VT2,true>
, INVALID_TYPE > Tmp;
78
79
typedef
typename
RemoveReference< typename RemoveCV<VT1>::Type
>::Type Type1;
80
typedef
typename
RemoveReference< typename RemoveCV<VT2>::Type
>::Type Type2;
82
//**********************************************************************************************
83
84
public
:
85
//**********************************************************************************************
87
typedef
typename
SelectType< qualified, TSVecTSVecAddExprTrait<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