Public Types | Public Member Functions | Private Types | Private Attributes | Friends | List of all members
blaze::TDVecTSMatMultExpr< VT, MT > Class Template Reference

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

#include <TDVecTSMatMultExpr.h>

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

Public Types

enum  : bool { simdEnabled = false }
 Compilation switch for the expression template evaluation strategy.
 
enum  : bool { smpAssignable }
 Compilation switch for the expression template assignment strategy.
 
using This = TDVecTSMatMultExpr< VT, MT >
 Type of this TDVecTSMatMultExpr instance.
 
using ResultType = MultTrait_< VRT, MRT >
 Result type for expression template evaluations.
 
using TransposeType = TransposeType_< ResultType >
 Transpose type for expression template evaluations.
 
using ElementType = ElementType_< ResultType >
 Resulting element type.
 
using ReturnType = const ElementType
 Return type for expression template evaluations.
 
using CompositeType = IfTrue_< useAssign, const ResultType, const TDVecTSMatMultExpr &>
 Data type for composite expression templates.
 
using LeftOperand = If_< IsExpression< VT >, const VT, const VT &>
 Composite type of the left-hand side dense vector expression.
 
using RightOperand = If_< IsExpression< MT >, const MT, const MT &>
 Composite type of the right-hand side sparse matrix expression.
 
using LT = IfTrue_< evaluateVector, const VRT, VCT >
 Composite type of the left-hand side dense vector expression.
 
using RT = IfTrue_< evaluateMatrix, const MRT, MCT >
 Composite type of the right-hand side sparse matrix expression.
 
using VectorType = VT
 Type of the vector.
 

Public Member Functions

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

Private Types

enum  : bool { evaluateVector = IsComputation<VT>::value || RequiresEvaluation<VT>::value }
 Compilation switch for the composite type of the left-hand side dense vector expression.
 
enum  : bool { evaluateMatrix = RequiresEvaluation<MT>::value }
 Compilation switch for the composite type of the right-hand side sparse matrix expression.
 
enum  : bool { useAssign = ( evaluateVector || evaluateMatrix ) }
 Compilation switch for the evaluation strategy of the multiplication expression. More...
 
using VRT = ResultType_< VT >
 Result type of the left-hand side dense vector expression.
 
using MRT = ResultType_< MT >
 Result type of the right-hand side sparse matrix expression.
 
using VCT = CompositeType_< VT >
 Composite type of the left-hand side dense vector expression.
 
using MCT = CompositeType_< MT >
 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 >
EnableIf_< UseAssign< VT2 > > assign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 Assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseAssign< VT2 > > assign (SparseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 Assignment of a transpose dense vector-transpose sparse matrix multiplication to a sparse vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseAssign< VT2 > > addAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 Addition assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T+=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseAssign< VT2 > > subAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 Subtraction assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T-=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseAssign< VT2 > > multAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 Multiplication assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T*=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseAssign< VT2 > > divAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 Division assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T/=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseSMPAssign< VT2 > > smpAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 SMP assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseSMPAssign< VT2 > > smpAssign (SparseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 SMP assignment of a transpose dense vector-transpose sparse matrix multiplication to a sparse vector ( $ \vec{y}^T=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseSMPAssign< VT2 > > smpAddAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 SMP addition assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T+=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseSMPAssign< VT2 > > smpSubAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 SMP subtraction assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T-=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseSMPAssign< VT2 > > smpMultAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 SMP multiplication assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T*=\vec{x}^T*A $). More...
 
template<typename VT2 >
EnableIf_< UseSMPAssign< VT2 > > smpDivAssign (DenseVector< VT2, true > &lhs, const TDVecTSMatMultExpr &rhs)
 SMP division assignment of a transpose dense vector-transpose sparse matrix multiplication to a dense vector ( $ \vec{y}^T/=\vec{x}^T*A $). More...
 

Detailed Description

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

Expression object for transpose dense vector-transpose sparse matrix multiplications.

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

Member Enumeration Documentation

◆ anonymous enum

template<typename VT , typename MT >
anonymous enum : bool
private

Compilation switch for the evaluation strategy of the multiplication expression.

The useAssign compile time constant expression represents a compilation switch for the evaluation strategy of the multiplication expression. In case either the vector or the matrix operand requires an intermediate evaluation or the dense vector expression is a compound expression, useAssign will be set to true and the multiplication expression will be evaluated via the assign function family. Otherwise useAssign will be set to false and the expression will be evaluated via the subscript operator.

Member Function Documentation

◆ at()

template<typename VT , typename MT >
ReturnType blaze::TDVecTSMatMultExpr< VT, MT >::at ( size_t  index) const
inline

Checked access to the vector elements.

Parameters
indexAccess index. The index has to be in the range $[0..N-1]$.
Returns
The resulting value.
Exceptions
std::out_of_rangeInvalid vector access index.

◆ canAlias()

template<typename VT , typename MT >
template<typename T >
bool blaze::TDVecTSMatMultExpr< VT, MT >::canAlias ( const T *  alias) const
inlinenoexcept

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.

◆ canSMPAssign()

template<typename VT , typename MT >
bool blaze::TDVecTSMatMultExpr< VT, MT >::canSMPAssign ( ) const
inlinenoexcept

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.

◆ isAliased()

template<typename VT , typename MT >
template<typename T >
bool blaze::TDVecTSMatMultExpr< VT, MT >::isAliased ( const T *  alias) const
inlinenoexcept

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.

◆ isAligned()

template<typename VT , typename MT >
bool blaze::TDVecTSMatMultExpr< VT, MT >::isAligned ( ) const
inlinenoexcept

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

Returns
true in case the operands are aligned, false if not.

◆ leftOperand()

template<typename VT , typename MT >
LeftOperand blaze::TDVecTSMatMultExpr< VT, MT >::leftOperand ( ) const
inlinenoexcept

Returns the left-hand side dense vector operand.

Returns
The left-hand side dense vector operand.

◆ operator[]()

template<typename VT , typename MT >
ReturnType blaze::TDVecTSMatMultExpr< 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.

◆ operator~() [1/2]

template<typename VT, bool TF>
BLAZE_ALWAYS_INLINE VectorType& blaze::Vector< VT, TF >::operator~ ( )
inlinenoexceptinherited

Conversion operator for non-constant vectors.

Returns
Reference of the actual type of the vector.

◆ operator~() [2/2]

template<typename VT, bool TF>
BLAZE_ALWAYS_INLINE const VectorType& blaze::Vector< VT, TF >::operator~ ( ) const
inlinenoexceptinherited

Conversion operator for constant vectors.

Returns
Const reference of the actual type of the vector.

◆ rightOperand()

template<typename VT , typename MT >
RightOperand blaze::TDVecTSMatMultExpr< VT, MT >::rightOperand ( ) const
inlinenoexcept

Returns the right-hand side transpose sparse matrix operand.

Returns
The right-hand side transpose sparse matrix operand.

◆ size()

template<typename VT , typename MT >
size_t blaze::TDVecTSMatMultExpr< VT, MT >::size ( ) const
inlinenoexcept

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: