|
using | This = SMatMapExpr< MT, OP, SO > |
| Type of this SMatMapExpr instance.
|
|
using | BaseType = MatMapExpr< SparseMatrix< This, SO > > |
| Base type of this SMatMapExpr instance.
|
|
using | ResultType = MapTrait_t< RT, OP > |
| Result type for expression template evaluations.
|
|
using | OppositeType = OppositeType_t< ResultType > |
| Result type with opposite storage order for expression template evaluations.
|
|
using | TransposeType = TransposeType_t< ResultType > |
| Transpose type for expression template evaluations.
|
|
using | ElementType = ElementType_t< ResultType > |
| Resulting element type.
|
|
using | ReturnType = decltype(std::declval< OP >()(std::declval< RN >())) |
| Return type for expression template evaluations.
|
|
using | CompositeType = If_t< useAssign, const ResultType, const SMatMapExpr & > |
| Data type for composite expression templates.
|
|
using | Operand = If_t< IsExpression_v< MT >, const MT, const MT & > |
| Composite data type of the sparse matrix expression.
|
|
using | Operation = OP |
| Data type of the custom unary operation.
|
|
using | MatrixType = SMatMapExpr< MT, OP, SO > |
| Type of the matrix.
|
|
|
| SMatMapExpr (const MT &sm, OP op) noexcept |
| Constructor for the SMatMapExpr class. More...
|
|
ReturnType | operator() (size_t i, size_t j) const |
| 2D-access to the matrix elements. More...
|
|
ReturnType | at (size_t i, size_t j) const |
| Checked access to the matrix elements. More...
|
|
ConstIterator | begin (size_t i) const |
| Returns an iterator to the first non-zero element of row/column i. More...
|
|
ConstIterator | end (size_t i) const |
| Returns an iterator just past the last non-zero element of row/column i. More...
|
|
size_t | rows () const noexcept |
| Returns the current number of rows of the matrix. More...
|
|
size_t | columns () const noexcept |
| Returns the current number of columns of the matrix. More...
|
|
size_t | nonZeros () const |
| Returns the number of non-zero elements in the sparse matrix. More...
|
|
size_t | nonZeros (size_t i) const |
| Returns the number of non-zero elements in the specified row. More...
|
|
ConstIterator | find (size_t i, size_t j) const |
| Searches for a specific matrix element. More...
|
|
ConstIterator | lowerBound (size_t i, size_t j) const |
| Returns an iterator to the first index not less then the given index. More...
|
|
ConstIterator | upperBound (size_t i, size_t j) const |
| Returns an iterator to the first index greater then the given index. More...
|
|
Operand | operand () const noexcept |
| Returns the sparse matrix operand. More...
|
|
Operation | operation () const |
| Returns a copy of the custom operation. 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 | canSMPAssign () const noexcept |
| Returns whether the expression can be used in SMP assignments. More...
|
|
|
BLAZE_ALWAYS_INLINE constexpr SMatMapExpr< MT, OP, SO > & | operator~ () noexcept |
| CRTP-based conversion operation for non-constant matrices. More...
|
|
BLAZE_ALWAYS_INLINE constexpr const SMatMapExpr< MT, OP, SO > & | operator~ () const noexcept |
| CRTP-based conversion operation for constant matrices. More...
|
|
constexpr SMatMapExpr< MT, OP, SO > & | operator* () noexcept |
| CRTP-based conversion operation for non-constant matrices. More...
|
|
constexpr const SMatMapExpr< MT, OP, SO > & | operator* () const noexcept |
| CRTP-based conversion operation for constant matrices. More...
|
|
template<typename MT, typename OP, bool SO>
class blaze::SMatMapExpr< MT, OP, SO >
Expression object for the sparse matrix map() function.
The SMatMapExpr class represents the compile time expression for the evaluation of a custom operation on each element of a sparse matrix via the map() function.
template<typename MT , typename OP , bool SO>
Compilation switch for the serial evaluation strategy of the map expression.
The useAssign compile time constant expression represents a compilation switch for the serial evaluation strategy of the map expression. In case the given sparse matrix expression of type MT requires an intermediate evaluation, useAssign will be set to 1 and the map expression will be evaluated via the assign function family. Otherwise useAssign will be set to 0 and the expression will be evaluated via the subscript operator.