Index-value-pair for the sparse vectors and matrices.The SparseElement class represents a single index-value-pair of a sparse vector or sparse matrix.
More...
#include <SparseElement.h>
|
typedef Type | ValueType |
| The value type of the sparse element.
|
|
typedef size_t | IndexType |
| The index type of the sparse element.
|
|
template<typename Type>
class blaze::SparseElement< Type >
Index-value-pair for the sparse vectors and matrices.
The SparseElement class represents a single index-value-pair of a sparse vector or sparse matrix.
Constructor for a direct initialization of sparse elements.
- Parameters
-
v | The value of the sparse element. |
i | The index of the sparse element. |
Access to the current index of the sparse element.
- Returns
- The current index of the sparse element.
Multiplication assignment to the value of the sparse element.
- Parameters
-
v | The right-hand side value for the multiplication. |
- Returns
- Reference to the assigned sparse element.
Addition assignment to the value of the sparse element.
- Parameters
-
v | The right-hand side value to be added to the sparse element value. |
- Returns
- Reference to the assigned sparse element.
Subtraction assignment to the value of the sparse element.
- Parameters
-
v | The right-hand side value to be subtracted from the sparse element value. |
- Returns
- Reference to the assigned sparse element.
Division assignment to the value of the sparse element.
- Parameters
-
v | The right-hand side value for the division |
- Returns
- Reference to the assigned sparse element.
Assignment to the value of the sparse element.
- Parameters
-
v | The new sparse element value. |
- Returns
- Reference to the assigned sparse element.
template<typename Type>
template<typename Other >
Assignment operator for different SparseElement instances.
- Parameters
-
rhs | Sparse element to be copied. |
- Returns
- Reference to the assigned sparse element.
Access to the current value of the sparse element.
- Returns
- The current value of the sparse element.
Access to the current value of the sparse element.
- Returns
- The current value of the sparse element.
The documentation for this class was generated from the following file: