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
SMatSVecMultExprTrait.h
Go to the documentation of this file.
1
//=================================================================================================
20
//=================================================================================================
21
22
#ifndef _BLAZE_MATH_TRAITS_SMATSVECMULTEXPRTRAIT_H_
23
#define _BLAZE_MATH_TRAITS_SMATSVECMULTEXPRTRAIT_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/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
//*************************************************************************************************
62
template
<
typename
MT
// Type of the left-hand side row-major sparse matrix
63
,
typename
VT >
// Type of the right-hand side non-transpose sparse vector
64
struct
SMatSVecMultExprTrait
65
{
66
private
:
67
//**********************************************************************************************
69
enum
{ qualified =
IsConst<MT>::value
||
IsVolatile<MT>::value
||
IsReference<MT>::value
||
70
IsConst<VT>::value
||
IsVolatile<VT>::value
||
IsReference<VT>::value
};
72
//**********************************************************************************************
73
74
//**********************************************************************************************
76
typedef
SelectType< IsSparseMatrix<MT>::value
&&
IsRowMajorMatrix<MT>::value
&&
77
IsSparseVector<VT>::value
&& !
IsTransposeVector<VT>::value
78
,
SMatSVecMultExpr<MT,VT>
, INVALID_TYPE > Tmp;
79
80
typedef
typename
RemoveReference< typename RemoveCV<MT>::Type
>::Type Type1;
81
typedef
typename
RemoveReference< typename RemoveCV<VT>::Type
>::Type Type2;
83
//**********************************************************************************************
84
85
public
:
86
//**********************************************************************************************
88
typedef
typename
SelectType< qualified, SMatSVecMultExprTrait<Type1,Type2>
, Tmp >::Type::Type Type;
90
//**********************************************************************************************
91
};
92
//*************************************************************************************************
93
94
}
// namespace blaze
95
96
#endif
Generated on Sun Jan 20 2013 08:14:38 by
1.8.3