Stokhos
Development
|
Container for a "sparse" array. More...
#include <Stokhos_SparseArray.hpp>
Public Types | |
typedef Teuchos::Array < ordinal_type > ::const_iterator | index_const_iterator |
typedef Teuchos::Array < val_type >::const_iterator | value_const_iterator |
typedef SparseArrayIterator < index_const_iterator, value_const_iterator > | const_iterator |
typedef SparseArrayReverseIterator < index_const_iterator, value_const_iterator > | const_reverse_iterator |
Public Member Functions | |
ordinal_type | size () const |
Return size of array. | |
void | resize (ordinal_type sz) |
Resize array. | |
const_iterator | begin () const |
Iterator pointing to beginning of array. | |
const_iterator | end () const |
Iterator pointing to end of array. | |
const_reverse_iterator | rbegin () const |
Reverse iterator pointing to end of array. | |
const_reverse_iterator | rend () const |
Reverse iterator pointing to begining of array. | |
const_iterator | find (ordinal_type i) const |
Return iterator pointing to given index i . More... | |
Public Attributes | |
Teuchos::Array< ordinal_type > | indices |
Indices of nonzeros. | |
Teuchos::Array< val_type > | values |
Nonzero values. | |
Container for a "sparse" array.
|
inline |
Return iterator pointing to given index i
.
Returns end()
if array doesn't contain index i