Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
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. More... | |
void | resize (ordinal_type sz) |
Resize array. More... | |
const_iterator | begin () const |
Iterator pointing to beginning of array. More... | |
const_iterator | end () const |
Iterator pointing to end of array. More... | |
const_reverse_iterator | rbegin () const |
Reverse iterator pointing to end of array. More... | |
const_reverse_iterator | rend () const |
Reverse iterator pointing to begining of array. More... | |
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. More... | |
Teuchos::Array< val_type > | values |
Nonzero values. More... | |
Container for a "sparse" array.
Definition at line 31 of file Stokhos_SparseArray.hpp.
typedef Teuchos::Array<ordinal_type>::const_iterator Stokhos::SparseArray< ordinal_type, val_type >::index_const_iterator |
Definition at line 48 of file Stokhos_SparseArray.hpp.
typedef Teuchos::Array<val_type>::const_iterator Stokhos::SparseArray< ordinal_type, val_type >::value_const_iterator |
Definition at line 49 of file Stokhos_SparseArray.hpp.
typedef SparseArrayIterator<index_const_iterator, value_const_iterator> Stokhos::SparseArray< ordinal_type, val_type >::const_iterator |
Definition at line 50 of file Stokhos_SparseArray.hpp.
typedef SparseArrayReverseIterator<index_const_iterator, value_const_iterator> Stokhos::SparseArray< ordinal_type, val_type >::const_reverse_iterator |
Definition at line 51 of file Stokhos_SparseArray.hpp.
|
inline |
Return size of array.
Definition at line 40 of file Stokhos_SparseArray.hpp.
|
inline |
Resize array.
Definition at line 43 of file Stokhos_SparseArray.hpp.
|
inline |
Iterator pointing to beginning of array.
Definition at line 54 of file Stokhos_SparseArray.hpp.
|
inline |
Iterator pointing to end of array.
Definition at line 59 of file Stokhos_SparseArray.hpp.
|
inline |
Reverse iterator pointing to end of array.
Definition at line 64 of file Stokhos_SparseArray.hpp.
|
inline |
Reverse iterator pointing to begining of array.
Definition at line 69 of file Stokhos_SparseArray.hpp.
|
inline |
Return iterator pointing to given index i
.
Returns end()
if array doesn't contain index i
Definition at line 77 of file Stokhos_SparseArray.hpp.
Teuchos::Array<ordinal_type> Stokhos::SparseArray< ordinal_type, val_type >::indices |
Indices of nonzeros.
Definition at line 34 of file Stokhos_SparseArray.hpp.
Teuchos::Array<val_type> Stokhos::SparseArray< ordinal_type, val_type >::values |
Nonzero values.
Definition at line 37 of file Stokhos_SparseArray.hpp.