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
SVecSVecSubExprTrait.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_TRAITS_SVECSVECSUBEXPRTRAIT_H_
23
#define _BLAZE_MATH_TRAITS_SVECSVECSUBEXPRTRAIT_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
//*************************************************************************************************
60
template
<
typename
VT1
// Type of the left-hand side non-transpose sparse vector
61
,
typename
VT2 >
// Type of the right-hand side non-transpose sparse vector
62
struct
SVecSVecSubExprTrait
63
{
64
private
:
65
//**********************************************************************************************
67
enum
{ qualified =
IsConst<VT1>::value
||
IsVolatile<VT1>::value
||
IsReference<VT1>::value
||
68
IsConst<VT2>::value
||
IsVolatile<VT2>::value
||
IsReference<VT2>::value
};
70
//**********************************************************************************************
71
72
//**********************************************************************************************
74
typedef
SelectType< IsSparseVector<VT1>::value
&& !
IsTransposeVector<VT1>::value
&&
75
IsSparseVector<VT2>::value
&& !
IsTransposeVector<VT2>::value
76
,
SVecSVecSubExpr<VT1,VT2,false>
, INVALID_TYPE > Tmp;
77
78
typedef
typename
RemoveReference< typename RemoveCV<VT1>::Type
>::Type Type1;
79
typedef
typename
RemoveReference< typename RemoveCV<VT2>::Type
>::Type Type2;
81
//**********************************************************************************************
82
83
public
:
84
//**********************************************************************************************
86
typedef
typename
SelectType< qualified, SVecSVecSubExprTrait<Type1,Type2>
, Tmp >::Type::Type Type;
88
//**********************************************************************************************
89
};
90
//*************************************************************************************************
91
92
}
// namespace blaze
93
94
#endif
Generated on Sun Jan 20 2013 08:14:38 by
1.8.3