Stokhos Development
Loading...
Searching...
No Matches
Stokhos::SparseArray< ordinal_type, val_type > Struct Template Reference

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.

Public Attributes

Teuchos::Array< ordinal_typeindices
 Indices of nonzeros.
Teuchos::Array< val_type > values
 Nonzero values.

Detailed Description

template<typename ordinal_type, typename val_type>
struct Stokhos::SparseArray< ordinal_type, val_type >

Container for a "sparse" array.

Member Function Documentation

◆ find()

template<typename ordinal_type, typename val_type>
const_iterator Stokhos::SparseArray< ordinal_type, val_type >::find ( ordinal_type i) const
inline

Return iterator pointing to given index i.

Returns end() if array doesn't contain index i


The documentation for this struct was generated from the following file: