35 #ifndef _BLAZE_MATH_SPARSE_VALUEINDEXPAIR_H_
36 #define _BLAZE_MATH_SPARSE_VALUEINDEXPAIR_H_
69 template<
typename Type >
95 template<
typename Other >
98 template<
typename Other >
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 );
104 template<
typename Other >
inline ValueIndexPair& operator/=(
const Other& v );
111 inline Reference
value();
112 inline ConstReference
value()
const;
113 inline IndexType
index()
const;
156 template<
typename Type >
170 template<
typename Type >
196 template<
typename Type >
197 template<
typename Other >
201 value_ = rhs.
value();
202 index_ = rhs.index();
214 template<
typename Type >
215 template<
typename Other >
231 template<
typename Type >
232 template<
typename Other >
247 template<
typename Type >
248 template<
typename Other >
263 template<
typename Type >
264 template<
typename Other >
279 template<
typename Type >
280 template<
typename Other >
302 template<
typename Type >
315 template<
typename Type >
328 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:79
size_t IndexType
The index type of the value-index-pair.
Definition: ValueIndexPair.h:75
Header file for basic type definitions.
BLAZE_ALWAYS_INLINE T1 & operator/=(SIMDPack< T1 > &lhs, const SIMDPack< T2 > &rhs)
Division assignment operator for the division of two SIMD packs.
Definition: BasicTypes.h:1339
typename DisableIf< Condition, T >::Type DisableIf_
Auxiliary type for the DisableIf class template.The DisableIf_ alias declaration provides a convenien...
Definition: DisableIf.h:223
#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:79
BLAZE_ALWAYS_INLINE T1 & operator*=(SIMDPack< T1 > &lhs, const SIMDPack< T2 > &rhs)
Multiplication assignment operator for the multiplication of two SIMD packs.
Definition: BasicTypes.h:1321
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:79
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:122
Header file for the EnableIf class template.
BLAZE_ALWAYS_INLINE T1 & operator+=(SIMDPack< T1 > &lhs, const SIMDPack< T2 > &rhs)
Addition assignment operator for the addition of two SIMD packs.
Definition: BasicTypes.h:1285
Constraint on the data type.
#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:79
IndexType index() const
Access to the current index of the value-index-pair.
Definition: ValueIndexPair.h:329
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
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:223
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:121
ValueIndexPair()
Default constructor for value-index-pairs.
Definition: ValueIndexPair.h:157
BLAZE_ALWAYS_INLINE T1 & operator-=(SIMDPack< T1 > &lhs, const SIMDPack< T2 > &rhs)
Subtraction assignment operator for the subtraction of two SIMD packs.
Definition: BasicTypes.h:1303
Size type of the Blaze library.
Reference value()
Access to the current value of the value-index-pair.
Definition: ValueIndexPair.h:303