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
TDMatSVecMultExprTrait.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_TRAITS_TDMATSVECMULTEXPRTRAIT_H_
23
#define _BLAZE_MATH_TRAITS_TDMATSVECMULTEXPRTRAIT_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/IsSparseVector.h
>
34
#include <
blaze/math/typetraits/IsTransposeVector.h
>
35
#include <
blaze/util/InvalidType.h
>
36
#include <
blaze/util/SelectType.h
>
37
#include <
blaze/util/typetraits/IsConst.h
>
38
#include <
blaze/util/typetraits/IsReference.h
>
39
#include <
blaze/util/typetraits/IsVolatile.h
>
40
#include <
blaze/util/typetraits/RemoveCV.h
>
41
#include <
blaze/util/typetraits/RemoveReference.h
>
42
43
44
namespace
blaze {
45
46
//=================================================================================================
47
//
48
// CLASS DEFINITION
49
//
50
//=================================================================================================
51
52
//*************************************************************************************************
63
template
<
typename
MT
// Type of the left-hand side column-major dense matrix
64
,
typename
VT >
// Type of the right-hand side non-transpose sparse vector
65
struct
TDMatSVecMultExprTrait
66
{
67
private
:
68
//**********************************************************************************************
70
enum
{ qualified =
IsConst<MT>::value
||
IsVolatile<MT>::value
||
IsReference<MT>::value
||
71
IsConst<VT>::value
||
IsVolatile<VT>::value
||
IsReference<VT>::value
};
73
//**********************************************************************************************
74
75
//**********************************************************************************************
77
typedef
SelectType< IsDenseMatrix<MT>::value
&&
IsColumnMajorMatrix<MT>::value
&&
78
IsSparseVector<VT>::value
&& !
IsTransposeVector<VT>::value
79
,
TDMatSVecMultExpr<MT,VT>
, INVALID_TYPE > Tmp;
80
81
typedef
typename
RemoveReference< typename RemoveCV<MT>::Type
>::Type Type1;
82
typedef
typename
RemoveReference< typename RemoveCV<VT>::Type
>::Type Type2;
84
//**********************************************************************************************
85
86
public
:
87
//**********************************************************************************************
89
typedef
typename
SelectType< qualified, TDMatSVecMultExprTrait<Type1,Type2>
, Tmp >::Type::Type Type;
91
//**********************************************************************************************
92
};
93
//*************************************************************************************************
94
95
}
// namespace blaze
96
97
#endif
Generated on Fri May 24 2013 16:39:56 by
1.8.3.1