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>
|
| SparseElement () |
| Default constructor for sparse elements.
|
|
| SparseElement (const Type &v, size_t i) |
| Constructor for a direct initialization of sparse elements.
|
|
|
template<typename Other > |
SparseElement & | operator= (const SparseElement< Other > &rhs) |
| Assignment operator for different SparseElement instances.
|
|
SparseElement & | operator= (const Type &v) |
| Assignment operator for the value of the sparse element.
|
|
|
Type & | value () |
| Access to the current value of the sparse element.
|
|
const Type & | value () const |
| Access to the current value of the sparse element.
|
|
size_t | index () const |
| Access to the current index 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.
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.
Assignment operator for the value of the sparse element.
- Parameters
-
v | The new sparse element value. |
- 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: