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 63 of file Stokhos_SparseArray.hpp.
typedef Teuchos::Array<ordinal_type>::const_iterator Stokhos::SparseArray< ordinal_type, val_type >::index_const_iterator |
Definition at line 80 of file Stokhos_SparseArray.hpp.
typedef Teuchos::Array<val_type>::const_iterator Stokhos::SparseArray< ordinal_type, val_type >::value_const_iterator |
Definition at line 81 of file Stokhos_SparseArray.hpp.
typedef SparseArrayIterator<index_const_iterator, value_const_iterator> Stokhos::SparseArray< ordinal_type, val_type >::const_iterator |
Definition at line 82 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 83 of file Stokhos_SparseArray.hpp.
|
inline |
Return size of array.
Definition at line 72 of file Stokhos_SparseArray.hpp.
|
inline |
Resize array.
Definition at line 75 of file Stokhos_SparseArray.hpp.
|
inline |
Iterator pointing to beginning of array.
Definition at line 86 of file Stokhos_SparseArray.hpp.
|
inline |
Iterator pointing to end of array.
Definition at line 91 of file Stokhos_SparseArray.hpp.
|
inline |
Reverse iterator pointing to end of array.
Definition at line 96 of file Stokhos_SparseArray.hpp.
|
inline |
Reverse iterator pointing to begining of array.
Definition at line 101 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 109 of file Stokhos_SparseArray.hpp.
Teuchos::Array<ordinal_type> Stokhos::SparseArray< ordinal_type, val_type >::indices |
Indices of nonzeros.
Definition at line 66 of file Stokhos_SparseArray.hpp.
Teuchos::Array<val_type> Stokhos::SparseArray< ordinal_type, val_type >::values |
Nonzero values.
Definition at line 69 of file Stokhos_SparseArray.hpp.