Expression object for dense matrix-sparse vector multiplications.The DMatSVecMultExpr class represents the compile time expression for multiplications between row-major dense matrices and sparse vectors.
More...
#include <DMatSVecMultExpr.h>
Inherits blaze::DenseVector< DMatSVecMultExpr< MT, VT >, false >, blaze::MatVecMultExpr, and blaze::Computation.
|
enum | { vectorizable = 0
} |
| Compilation switch for the expression template evaluation strategy.
|
|
enum | { smpAssignable
} |
| Compilation switch for the expression template assignment strategy.
|
|
typedef DMatSVecMultExpr< MT, VT > | This |
| Type of this DMatSVecMultExpr instance.
|
|
typedef MultTrait< MRT, VRT >::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 SelectType< useAssign, const ResultType, const DMatSVecMultExpr & >::Type | CompositeType |
| Data type for composite expression templates.
|
|
typedef SelectType< IsExpression< MT >::value, const MT, const MT & >::Type | LeftOperand |
| Composite type of the left-hand side dense matrix expression.
|
|
typedef SelectType< IsExpression< VT >::value, const VT, const VT & >::Type | RightOperand |
| Composite type of the right-hand side dense vector expression.
|
|
typedef SelectType< evaluateMatrix, const MRT, MCT >::Type | LT |
| Type for the assignment of the left-hand side dense matrix operand.
|
|
typedef SelectType< evaluateVector, const VRT, VCT >::Type | RT |
| Type for the assignment of the right-hand side dense matrix operand.
|
|
typedef VT | VectorType |
| Type of the vector.
|
|
|
enum | { evaluateMatrix = RequiresEvaluation<MT>::value
} |
| Compilation switch for the composite type of the left-hand side dense matrix expression.
|
|
enum | { evaluateVector = IsComputation<VT>::value || RequiresEvaluation<VT>::value
} |
| Compilation switch for the composite type of the right-hand side sparse vector expression.
|
|
enum | { useAssign = evaluateMatrix || evaluateVector
} |
| Compilation switch for the evaluation strategy of the multiplication expression. More...
|
|
typedef MT::ResultType | MRT |
| Result type of the left-hand side dense matrix expression.
|
|
typedef VT::ResultType | VRT |
| Result type of the right-hand side sparse vector expression.
|
|
typedef MT::CompositeType | MCT |
| Composite type of the left-hand side dense matrix expression.
|
|
typedef VT::CompositeType | VCT |
| Composite type of the right-hand side sparse vector expression.
|
|
|
LeftOperand | mat_ |
| Left-hand side dense matrix of the multiplication expression.
|
|
RightOperand | vec_ |
| Right-hand side sparse vector of the multiplication expression.
|
|
template<typename MT, typename VT>
class blaze::DMatSVecMultExpr< MT, VT >
Expression object for dense matrix-sparse vector multiplications.
The DMatSVecMultExpr class represents the compile time expression for multiplications between row-major dense matrices and sparse vectors.
template<typename MT, typename VT>
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 matrix or the vector operand requires an intermediate evaluation or the sparse 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.
template<typename MT, typename VT>
Constructor for the DMatSVecMultExpr class.
- Parameters
-
mat | The left-hand side dense matrix operand of the multiplication expression. |
vec | The right-hand side sparse vector operand of the multiplication expression. |
template<typename MT, typename VT>
Checked access to the vector elements.
- Parameters
-
index | Access index. The index has to be in the range . |
- Returns
- The resulting value.
- Exceptions
-
std::out_of_range | Invalid vector access index. |
template<typename MT, typename VT>
template<typename T >
Returns whether the expression can alias with the given address alias.
- Parameters
-
alias | The alias to be checked. |
- Returns
- true in case the given alias is contained in this expression, false if not.
template<typename MT, typename VT>
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 MT, typename VT>
template<typename T >
Returns whether the expression is aliased with the given address alias.
- Parameters
-
alias | The alias to be checked. |
- Returns
- true in case the given alias is contained in this expression, false if not.
template<typename MT, typename VT>
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 MT, typename VT>
Returns the left-hand side dense matrix operand.
- Returns
- The left-hand side dense matrix operand.
template<typename MT, typename VT>
Subscript operator for the direct access to the vector elements.
- Parameters
-
index | Access index. The index has to be in the range . |
- Returns
- The resulting value.
template<typename VT, bool TF>
Conversion operator for non-constant vectors.
- Returns
- Reference of the actual type of the vector.
template<typename VT, bool TF>
Conversion operator for constant vectors.
- Returns
- Const reference of the actual type of the vector.
template<typename MT, typename VT>
Returns the right-hand side sparse vector operand.
- Returns
- The right-hand side sparse vector operand.
template<typename MT, typename VT>
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: