LocARNA-1.8.11
|
Element of sparse matrix. More...
#include <sparse_matrix.hh>
Public Member Functions | |
element (SparseMatrix< T > *m, key_t k) | |
Construct as proxy for specified element in given sparse matrix. More... | |
operator value_t () | |
Access entry for which the class acts as proxy. More... | |
element | operator+= (const value_t &x) |
Operator for in place addition. More... | |
element & | operator= (const value_t &x) |
Assignment operator. More... | |
Element of sparse matrix.
Proxy for sparse matrix entries. This is required for non-const access to matrix elements in order to provide a very similar syntax for the sparse data structure and the corresponding non-sparse matrix.
|
inline |
Construct as proxy for specified element in given sparse matrix.
m | pointer to sparse matrix |
k | key/index of entry in given sparse matrix |
|
inline |
Access entry for which the class acts as proxy.
If entry does not exist, return the default value
|
inline |
Operator for in place addition.
x | value |
|
inline |
Assignment operator.
x | value |