Opm::SparseVector< T > Class Template Reference
Detailed Descriptiontemplate<typename T>
|
|
inline |
Default constructor. Yields an empty SparseVector.
|
inlineexplicit |
Constructs a SparseVector with a given size, but no nonzero elements.
|
inline |
A constructor taking all the element data for the vector and their indices.
data_beg | The start of the element data. |
data_end | One-beyond-end of the element data. |
rowsize_beg | The start of the index data. |
rowsize_end | One beyond the end of the index data. |
|
inline |
Appends an element to the vector. Note that this function does not increase the size() of the vector, it just adds another nonzero element. Elements must be added in index order.
|
inline |
Makes the vector empty().
|
inline |
O(log n) element access.
index | the proper vector index |
|
inline |
|
inline |
O(1) element access.
nzindex | an index counting only nonzero elements. |
References Opm::SparseVector< T >::nonzeroSize().
|
inline |
O(1) index access.
nzindex | an index counting only nonzero elements. |
References Opm::SparseVector< T >::nonzeroSize().
|
inline |
Returns the number of nonzero data elements.
Referenced by Opm::SparseVector< T >::nonzeroElement(), and Opm::SparseVector< T >::nonzeroIndex().
|
inline |
Equality.
|
inline |
Returns the size of the vector. Recall that most or all of the vector may be default/zero.