35 #ifndef _BLAZE_MATH_SPARSE_VALUEINDEXPAIR_H_
36 #define _BLAZE_MATH_SPARSE_VALUEINDEXPAIR_H_
69 template<
typename Type >
95 template<
typename Other >
97 operator=(
const Other& rhs );
99 template<
typename Other >
101 operator=(
const Other& v );
103 template<
typename Other >
inline ValueIndexPair& operator+=(
const Other& v );
104 template<
typename Other >
inline ValueIndexPair& operator-=(
const Other& v );
105 template<
typename Other >
inline ValueIndexPair& operator*=(
const Other& v );
106 template<
typename Other >
inline ValueIndexPair& operator/=(
const Other& v );
113 inline Reference
value();
114 inline ConstReference
value()
const;
115 inline IndexType
index()
const;
158 template<
typename Type >
172 template<
typename Type >
198 template<
typename Type >
199 template<
typename Other >
203 value_ = rhs.
value();
204 index_ = rhs.index();
216 template<
typename Type >
217 template<
typename Other >
233 template<
typename Type >
234 template<
typename Other >
249 template<
typename Type >
250 template<
typename Other >
265 template<
typename Type >
266 template<
typename Other >
281 template<
typename Type >
282 template<
typename Other >
304 template<
typename Type >
317 template<
typename Type >
330 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:75
Header file for basic type definitions.
#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
const Type & ConstReference
Reference-to-const return type.
Definition: ValueIndexPair.h:77
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:74
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#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
Type & Reference
Reference return type.
Definition: ValueIndexPair.h:76
Constraint on the data type.
Header file for the SparseElement base class.
size_t index_
Index of the value-index-pair.
Definition: ValueIndexPair.h:124
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
IndexType index() const
Access to the current index of the value-index-pair.
Definition: ValueIndexPair.h:331
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.
Index-value-pair for sparse vectors and matrices.The ValueIndexPair class represents a single index-v...
Definition: ValueIndexPair.h:70
Type value_
Value of the value-index-pair.
Definition: ValueIndexPair.h:123
ValueIndexPair()
Default constructor for value-index-pairs.
Definition: ValueIndexPair.h:159
Size type of the Blaze library.
Reference value()
Access to the current value of the value-index-pair.
Definition: ValueIndexPair.h:305