![]() |
Expression object for outer products between two dense vectors.The DVecTDVecMultExpr class represents the compile time expression for outer products between dense vectors. More...
#include <DVecTDVecMultExpr.h>
Inherits blaze::DenseMatrix< DVecTDVecMultExpr< VT1, VT2 >, false >, blaze::Expression, and blaze::Computation.
Public Types | |
enum | { vectorizable = 0 } |
Compilation switch for the expression template evaluation strategy. | |
enum | { canAlias = !IsComputation<VT1>::value || !IsComputation<VT2>::value } |
Compilation flag for the detection of aliasing effects. | |
typedef DVecTDVecMultExpr< VT1, VT2 > | This |
Type of this DVecTDVecMultExpr instance. | |
typedef MultTrait< RT1, RT2 >::Type | ResultType |
Result type for expression template evaluations. | |
typedef ResultType::OppositeType | OppositeType |
Result type with opposite storage order for expression template evaluations. | |
typedef ResultType::TransposeType | TransposeType |
Transpose type for expression template evaluations. | |
typedef ResultType::ElementType | ElementType |
Resulting element type. | |
typedef const SelectType < returnExpr, ExprReturnType, ElementType >::Type | ReturnType |
Return type for expression template evaluations. | |
typedef SelectType< useAssign, const ResultType, const DVecTDVecMultExpr & >::Type | CompositeType |
Data type for composite expression templates. | |
typedef SelectType < IsExpression< VT1 >::value, const VT1, const VT1 & >::Type | LeftOperand |
Composite type of the left-hand side dense vector expression. | |
typedef SelectType < IsExpression< VT2 >::value, const VT2, const VT2 & >::Type | RightOperand |
Composite type of the right-hand side dense vector expression. | |
typedef SelectType < IsComputation< VT1 >::value, const RT1, CT1 >::Type | LT |
Type for the assignment of the left-hand side dense vector operand. | |
typedef SelectType < IsComputation< VT2 >::value, const RT2, CT2 >::Type | RT |
Type for the assignment of the right-hand side dense vector operand. | |
typedef MT | MatrixType |
Type of the matrix. | |
Public Member Functions | |
DVecTDVecMultExpr (const VT1 &lhs, const VT2 &rhs) | |
Constructor for the DVecTDVecMultExpr class. | |
ReturnType | operator() (size_t i, size_t j) const |
2D-access to the matrix elements. | |
size_t | rows () const |
Returns the current number of rows of the matrix. | |
size_t | columns () const |
Returns the current number of columns of the matrix. | |
LeftOperand | leftOperand () const |
Returns the left-hand side dense vector operand. | |
RightOperand | rightOperand () const |
Returns the right-hand side dense vector operand. | |
template<typename T > | |
bool | isAliased (const T *alias) const |
Returns whether the expression is aliased with the given address alias. | |
MatrixType & | operator~ () |
Conversion operator for non-constant matrices. | |
const MatrixType & | operator~ () const |
Conversion operator for constant matrices. | |
Private Types | |
enum | { returnExpr = !IsTemporary<RN1>::value && !IsTemporary<RN2>::value } |
Compilation switch for the selection of the subscript operator return type. More... | |
enum | { useAssign = ( IsComputation<VT1>::value || IsComputation<VT2>::value ) } |
Compilation switch for the evaluation strategy of the outer product expression. More... | |
typedef VT1::ResultType | RT1 |
Result type of the left-hand side dense vector expression. | |
typedef VT2::ResultType | RT2 |
Result type of the right-hand side dense vector expression. | |
typedef VT1::ReturnType | RN1 |
Return type of the left-hand side dense vector expression. | |
typedef VT2::ReturnType | RN2 |
Return type of the right-hand side dense vector expression. | |
typedef VT1::CompositeType | CT1 |
Composite type of the left-hand side dense vector expression. | |
typedef VT2::CompositeType | CT2 |
Composite type of the right-hand side dense vector expression. | |
typedef MultExprTrait< RN1, RN2 >::Type | ExprReturnType |
Expression return type for the subscript operator. | |
Private Attributes | |
LeftOperand | lhs_ |
Left-hand side dense vector of the multiplication expression. | |
RightOperand | rhs_ |
Right-hand side dense vector of the multiplication expression. | |
Expression object for outer products between two dense vectors.
The DVecTDVecMultExpr class represents the compile time expression for outer products between dense vectors.
|
private |
Compilation switch for the selection of the subscript operator return type.
The returnExpr compile time constant expression is a compilation switch for the selection of the ReturnType. If either vector operand returns a temporary vector or matrix, returnExpr will be set to false and the subscript operator will return it's result by value. Otherwise returnExpr will be set to true and the subscript operator may return it's result as an expression.
|
private |
Compilation switch for the evaluation strategy of the outer product expression.
The useAssign compile time constant expression represents a compilation switch for the evaluation strategy of the outer product expression. In case either of the two dense vector operands is an expression, useAssign will be set to true and the outer product expression will be evaluated via the assign function family. Otherwise useAssign will be set to false and the expression will be evaluated via the function call operator.
|
inlineexplicit |
Constructor for the DVecTDVecMultExpr class.
lhs | The left-hand side dense vector operand of the multiplication expression. |
rhs | The right-hand side dense vector operand of the multiplication expression. |
|
inline |
Returns the current number of columns of the matrix.
|
inline |
Returns whether the expression is aliased with the given address alias.
alias | The alias to be checked. |
|
inline |
Returns the left-hand side dense vector operand.
|
inline |
2D-access to the matrix elements.
i | Access index for the row. The index has to be in the range ![]() |
j | Access index for the column. The index has to be in the range ![]() |
|
inlineinherited |
Conversion operator for non-constant matrices.
|
inlineinherited |
Conversion operator for constant matrices.
|
inline |
Returns the right-hand side dense vector operand.
|
inline |
Returns the current number of rows of the matrix.