Expression object for the forced evaluation of sparse vectors.The SVecEvalExpr class represents the compile time expression for the forced evaluation of a sparse vector.
More...
#include <SVecEvalExpr.h>
Inherits blaze::SparseVector< SVecEvalExpr< VT, TF >, TF >, blaze::Expression, and blaze::Computation.
|
enum | { canAlias = ( !IsComputation<VT>::value || CanAlias<VT>::value ) && !RequiresEvaluation<VT>::value
} |
| Compilation flag for the detection of aliasing effects.
|
|
typedef SVecEvalExpr< VT, TF > | This |
| Type of this SVecEvalExpr instance.
|
|
typedef VT::ResultType | ResultType |
| Result type for expression template evaluations.
|
|
typedef VT::TransposeType | TransposeType |
| Transpose type for expression template evaluations.
|
|
typedef VT::ElementType | ElementType |
| Resulting element type.
|
|
typedef VT::ReturnType | 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 | Operand |
| Composite data type of the sparse vector expression.
|
|
typedef VT | VectorType |
| Type of the vector.
|
|
|
| SVecEvalExpr (const VT &sv) |
| Constructor for the SVecEvalExpr 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 the number of non-zero elements in the sparse vector.
|
|
Operand | operand () const |
| Returns the sparse vector operand.
|
|
template<typename T > |
bool | isAliased (const T *alias) const |
| Returns whether the expression is aliased with the given address alias.
|
|
VectorType & | operator~ () |
| Conversion operator for non-constant vectors.
|
|
const VectorType & | operator~ () const |
| Conversion operator for constant vectors.
|
|
|
Operand | sv_ |
| Sparse vector of the evaluation expression.
|
|
template<typename VT, bool TF>
class blaze::SVecEvalExpr< VT, TF >
Expression object for the forced evaluation of sparse vectors.
The SVecEvalExpr class represents the compile time expression for the forced evaluation of a sparse vector.
template<typename VT , bool TF>
Constructor for the SVecEvalExpr class.
- Parameters
-
sv | The sparse vector operand of the evaluation expression. |
template<typename VT , bool TF>
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 an alias effect is detected, false otherwise.
template<typename VT , bool TF>
Returns the number of non-zero elements in the sparse vector.
- Returns
- The number of non-zero elements in the sparse vector.
template<typename VT , bool TF>
Returns the sparse vector operand.
- Returns
- The sparse vector operand.
template<typename VT , bool TF>
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 VT , bool TF>
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: