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

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

#include <TSVecSMatMultExpr.h>

Inherits blaze::SparseVector< TSVecSMatMultExpr< VT, MT >, true >, blaze::Expression, and blaze::Computation.

Public Types

enum  { canAlias }
 Compilation flag for the detection of aliasing effects.
 
typedef TSVecSMatMultExpr< VT, MT > This
 Type of this TSVecSMatMultExpr 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 sparse 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
< IsComputation< VT >::value,
const VRT, VCT >::Type 
LT
 Type for the assignment of the left-hand side sparse vector operand.
 
typedef MCT RT
 Type for the assignment of the right-hand side sparse matrix operand.
 
typedef VT VectorType
 Type of the vector.
 

Public Member Functions

 TSVecSMatMultExpr (const VT &vec, const MT &mat)
 Constructor for the TSVecSMatMultExpr class.
 
ReturnType operator[] (size_t index) const
 Subscript operator for the direct access to the vector elements.
 
size_t size () const
 Returns the current size/dimension of the vector.
 
size_t nonZeros () const
 Returns an estimation for the number of non-zero elements in the sparse vector.
 
LeftOperand leftOperand () const
 Returns the left-hand side sparse vector operand.
 
RightOperand rightOperand () const
 Returns the right-hand side sparse matrix operand.
 
template<typename T >
bool isAliased (const T *alias) const
 Returns whether the expression is aliased with the given address alias.
 
VectorTypeoperator~ ()
 Conversion operator for non-constant vectors.
 
const VectorTypeoperator~ () const
 Conversion operator for constant vectors.
 

Private Types

typedef VT::ResultType VRT
 Result type of the left-hand side sparse 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 sparse vector expression.
 
typedef MT::CompositeType MCT
 Composite type of the right-hand side sparse matrix expression.
 

Private Attributes

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

Detailed Description

template<typename VT, typename MT>
class blaze::TSVecSMatMultExpr< VT, MT >

Expression object for sparse vector-sparse matrix multiplications.

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

Constructor & Destructor Documentation

template<typename VT, typename MT>
blaze::TSVecSMatMultExpr< VT, MT >::TSVecSMatMultExpr ( const VT &  vec,
const MT &  mat 
)
inlineexplicit

Constructor for the TSVecSMatMultExpr class.

Parameters
vecThe left-hand side sparse vector operand of the multiplication expression.
matThe right-hand side sparse matrix operand of the multiplication expression.

Member Function Documentation

template<typename VT, typename MT>
template<typename T >
bool blaze::TSVecSMatMultExpr< VT, MT >::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 the given alias is contained in this expression, false if not.
template<typename VT, typename MT>
LeftOperand blaze::TSVecSMatMultExpr< VT, MT >::leftOperand ( ) const
inline

Returns the left-hand side sparse vector operand.

Returns
The left-hand side sparse vector operand.
template<typename VT, typename MT>
size_t blaze::TSVecSMatMultExpr< VT, MT >::nonZeros ( ) const
inline

Returns an estimation for the number of non-zero elements in the sparse vector.

Returns
The estimate for the number of non-zero elements in the sparse vector.
template<typename VT, typename MT>
ReturnType blaze::TSVecSMatMultExpr< VT, MT >::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 VT, bool TF>
VectorType& blaze::Vector< VT, TF >::operator~ ( )
inlineinherited

Conversion operator for non-constant vectors.

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

Conversion operator for constant vectors.

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

Returns the right-hand side sparse matrix operand.

Returns
The right-hand side sparse matrix operand.
template<typename VT, typename MT>
size_t blaze::TSVecSMatMultExpr< VT, MT >::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 file: