35 #ifndef _BLAZE_MATH_SPARSE_VALUEINDEXPAIR_H_
36 #define _BLAZE_MATH_SPARSE_VALUEINDEXPAIR_H_
68 template<
typename Type >
92 template<
typename Other >
94 operator=(
const Other& rhs );
96 template<
typename Other >
98 operator=(
const Other& v );
100 template<
typename Other >
inline ValueIndexPair& operator+=(
const Other& v );
101 template<
typename Other >
inline ValueIndexPair& operator-=(
const Other& v );
102 template<
typename Other >
inline ValueIndexPair& operator*=(
const Other& v );
103 template<
typename Other >
inline ValueIndexPair& operator/=(
const Other& v );
110 inline Type&
value();
111 inline const Type&
value()
const;
112 inline size_t index()
const;
155 template<
typename Type >
169 template<
typename Type >
195 template<
typename Type >
196 template<
typename Other >
200 value_ = rhs.
value();
201 index_ = rhs.index();
213 template<
typename Type >
214 template<
typename Other >
230 template<
typename Type >
231 template<
typename Other >
246 template<
typename Type >
247 template<
typename Other >
262 template<
typename Type >
263 template<
typename Other >
278 template<
typename Type >
279 template<
typename Other >
301 template<
typename Type >
314 template<
typename Type >
327 template<
typename Type >
#define BLAZE_CONSTRAINT_MUST_NOT_BE_CONST(T)
Constraint on the data type.In case the given data type is a const-qualified type, a compilation error is created.
Definition: Const.h:116
size_t IndexType
The index type of the value-index-pair.
Definition: ValueIndexPair.h:74
#define BLAZE_CONSTRAINT_MUST_NOT_BE_VOLATILE(T)
Constraint on the data type.In case the given data type is a volatile-qualified type, a compilation error is created.
Definition: Volatile.h:116
Constraint on the data type.
Header file for the DisableIf class template.
Type ValueType
The value type of the value-index-pair.
Definition: ValueIndexPair.h:73
#define BLAZE_CONSTRAINT_MUST_NOT_BE_POINTER_TYPE(T)
Constraint on the data type.In case the given data type T is not a pointer type, a compilation error ...
Definition: Pointer.h:116
Constraint on the data type.
Header file for the SparseElement base class.
size_t index_
Index of the value-index-pair.
Definition: ValueIndexPair.h:121
Header file for the EnableIf class template.
Constraint on the data type.
Substitution Failure Is Not An Error (SFINAE) class.The EnableIf class template is an auxiliary tool ...
Definition: EnableIf.h:184
#define BLAZE_CONSTRAINT_MUST_NOT_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:116
Constraint on the data type.
Base class for all sparse element types.The SparseElement class is the base class for all sparse elem...
Definition: SparseElement.h:57
Substitution Failure Is Not An Error (SFINAE) class.The DisableIf class template is an auxiliary tool...
Definition: DisableIf.h:184
Header file for the IsSparseElement type trait class.
size_t index() const
Access to the current index of the value-index-pair.
Definition: ValueIndexPair.h:328
Index-value-pair for sparse vectors and matrices.The ValueIndexPair class represents a single index-v...
Definition: ValueIndexPair.h:69
Type value_
Value of the value-index-pair.
Definition: ValueIndexPair.h:120
ValueIndexPair()
Default constructor for value-index-pairs.
Definition: ValueIndexPair.h:156
Type & value()
Access to the current value of the value-index-pair.
Definition: ValueIndexPair.h:302