Feellgood
|
Public Attributes | |
std::mutex | mutex |
std::vector< int > | indices |
std::vector< double > | values |
Read-mode sparse vector.
This holds a mutex that protects the data during calls to add(), a list of indices, and a list of matching values. The following invariants should be enforced:
values[k]
is the vector element at index indices[k]
.Since mutexes are not movable, neither is this class.
std::vector<int> algebra::r_sparseMat::SparseVector::indices |
array of vector indices.
std::mutex algebra::r_sparseMat::SparseVector::mutex |
mutex guarding the values during calls to add()
std::vector<double> algebra::r_sparseMat::SparseVector::values |
array of vector values matching the indices