All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Types | Private Attributes | Friends | List of all members
blaze::TDVecSMatMultExpr< typename, typename > Class Template Reference

Expression object for transpose dense vector-sparse matrix multiplications.The TDVecSMatMultExpr class represents the compile time expression for multiplications between transpose dense vectors and row-major sparse matrices. More...

#include <TDVecSMatMultExpr.h>

Inherits blaze::DenseVector< TDVecSMatMultExpr< VT, MT >, true >, blaze::TVecMatMultExpr, and blaze::Computation.

Public Types

enum  { vectorizable = 0 }
 Compilation switch for the expression template evaluation strategy.
 
enum  { smpAssignable }
 Compilation switch for the expression template assignment strategy.
 
typedef TDVecSMatMultExpr< VT, MT > This
 Type of this TDVecSMatMultExpr instance.
 
typedef MultTrait< VRT, MRT >::Type ResultType
 Result type for expression template evaluations.
 
typedef ResultType::TransposeType TransposeType
 Transpose type for expression template evaluations.
 
typedef ResultType::ElementType ElementType
 Resulting element type.
 
typedef const ElementType ReturnType
 Return type for expression template evaluations.
 
typedef const ResultType CompositeType
 Data type for composite expression templates.
 
typedef SelectType
< IsExpression< VT >::value,
const VT, const VT & >::Type 
LeftOperand
 Composite type of the left-hand side dense vector expression.
 
typedef SelectType
< IsExpression< MT >::value,
const MT, const MT & >::Type 
RightOperand
 Composite type of the right-hand side sparse matrix expression.
 
typedef SelectType
< evaluateVector, const VRT,
VCT >::Type 
LT
 Composite type of the left-hand side dense vector expression.
 
typedef SelectType
< evaluateMatrix, const MRT,
MCT >::Type 
RT
 Composite type of the right-hand side sparse matrix expression.
 
typedef VT VectorType
 Type of the vector.
 

Public Member Functions

 TDVecSMatMultExpr (const VT &vec, const MT &mat)
 Constructor for the TDVecSMatMultExpr class.
 
ReturnType operator[] (size_t index) const
 Subscript operator for the direct access to the vector elements. More...
 
size_t size () const
 Returns the current size/dimension of the vector. More...
 
LeftOperand leftOperand () const
 Returns the left-hand side dense vector operand. More...
 
RightOperand rightOperand () const
 Returns the right-hand side sparse matrix operand. More...
 
template<typename T >
bool canAlias (const T *alias) const
 Returns whether the expression can alias with the given address alias. More...
 
template<typename T >
bool isAliased (const T *alias) const
 Returns whether the expression is aliased with the given address alias. More...
 
bool isAligned () const
 Returns whether the operands of the expression are properly aligned in memory. More...
 
bool canSMPAssign () const
 Returns whether the expression can be used in SMP assignments. More...
 
VectorTypeoperator~ ()
 Conversion operator for non-constant vectors. More...
 
const VectorTypeoperator~ () const
 Conversion operator for constant vectors. More...
 

Private Types

enum  { evaluateVector = IsComputation<VT>::value || RequiresEvaluation<VT>::value }
 Compilation switch for the composite type of the left-hand side dense vector expression.
 
enum  { evaluateMatrix = RequiresEvaluation<MT>::value }
 Compilation switch for the composite type of the right-hand side sparse matrix expression.
 
typedef VT::ResultType VRT
 Result type of the left-hand side dense vector expression.
 
typedef MT::ResultType MRT
 Result type of the right-hand side sparse matrix expression.
 
typedef VT::CompositeType VCT
 Composite type of the left-hand side dense vector expression.
 
typedef MT::CompositeType MCT
 Composite type of the right-hand side sparse matrix expression.
 

Private Attributes

LeftOperand vec_
 Left-hand side dense vector of the multiplication expression.
 
RightOperand mat_
 Right-hand side sparse matrix of the multiplication expression.
 

Friends

template<typename VT2 >
void assign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 Assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
void assign (SparseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 Assignment of a transpose dense vector-sparse matrix multiplication to a sparse vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
void addAssign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 Addition assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T+=\vec{x}^T*A $). More...
 
template<typename VT2 >
void subAssign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 Subtraction assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T-=\vec{x}^T*A $). More...
 
template<typename VT2 >
void multAssign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 Multiplication assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T*=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf< UseSMPAssign< VT2 >
>::Type 
smpAssign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 SMP assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf< UseSMPAssign< VT2 >
>::Type 
smpAssign (SparseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 SMP assignment of a transpose dense vector-sparse matrix multiplication to a sparse vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf< UseSMPAssign< VT2 >
>::Type 
smpAddAssign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 Addition assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T+=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf< UseSMPAssign< VT2 >
>::Type 
smpSubAssign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 SMP subtraction assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T-=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf< UseSMPAssign< VT2 >
>::Type 
smpMultAssign (DenseVector< VT2, true > &lhs, const TDVecSMatMultExpr &rhs)
 SMP multiplication assignment of a transpose dense vector-sparse matrix multiplication to a dense vector ( $ \vec{y}^T*=\vec{x}^T*A $). More...
 

Detailed Description

template<typename, typename>
class blaze::TDVecSMatMultExpr< typename, typename >

Expression object for transpose dense vector-sparse matrix multiplications.

The TDVecSMatMultExpr class represents the compile time expression for multiplications between transpose dense vectors and row-major sparse matrices.

Member Function Documentation

template<typename , typename >
template<typename T >
bool blaze::TDVecSMatMultExpr< typename, typename >::canAlias ( const T *  alias) const
inline

Returns whether the expression can alias with the given address alias.

Parameters
aliasThe alias to be checked.
Returns
true in case the expression can alias, false otherwise.
template<typename , typename >
bool blaze::TDVecSMatMultExpr< typename, typename >::canSMPAssign ( ) const
inline

Returns whether the expression can be used in SMP assignments.

Returns
true in case the expression can be used in SMP assignments, false if not.
template<typename , typename >
template<typename T >
bool blaze::TDVecSMatMultExpr< typename, typename >::isAliased ( const T *  alias) const
inline

Returns whether the expression is aliased with the given address alias.

Parameters
aliasThe alias to be checked.
Returns
true in case an alias effect is detected, false otherwise.
template<typename , typename >
bool blaze::TDVecSMatMultExpr< typename, typename >::isAligned ( ) const
inline

Returns whether the operands of the expression are properly aligned in memory.

Returns
true in case the operands are aligned, false if not.
template<typename , typename >
LeftOperand blaze::TDVecSMatMultExpr< typename, typename >::leftOperand ( ) const
inline

Returns the left-hand side dense vector operand.

Returns
The left-hand side dense vector operand.
template<typename , typename >
ReturnType blaze::TDVecSMatMultExpr< typename, typename >::operator[] ( size_t  index) const
inline

Subscript operator for the direct access to the vector elements.

Parameters
indexAccess index. The index has to be in the range $[0..N-1]$.
Returns
The resulting value.
template<typename , bool >
VectorType& blaze::Vector< typename, bool >::operator~ ( )
inlineinherited

Conversion operator for non-constant vectors.

Returns
Reference of the actual type of the vector.
template<typename , bool >
const VectorType& blaze::Vector< typename, bool >::operator~ ( ) const
inlineinherited

Conversion operator for constant vectors.

Returns
Const reference of the actual type of the vector.
template<typename , typename >
RightOperand blaze::TDVecSMatMultExpr< typename, typename >::rightOperand ( ) const
inline

Returns the right-hand side sparse matrix operand.

Returns
The right-hand side sparse matrix operand.
template<typename , typename >
size_t blaze::TDVecSMatMultExpr< typename, typename >::size ( ) const
inline

Returns the current size/dimension of the vector.

Returns
The size of the vector.

The documentation for this class was generated from the following files: