Stokhos Development
Public Types | Public Member Functions | Protected Attributes
Stokhos::MultiIndex< ordinal_t > Class Template Reference

A multidimensional index. More...

#include <Stokhos_ProductBasisUtils.hpp>

List of all members.

Public Types

typedef ordinal_t ordinal_type
typedef ordinal_t element_type

Public Member Functions

 MultiIndex ()
 MultiIndex (ordinal_type dim, ordinal_type v=ordinal_type(0))
 ~MultiIndex ()
ordinal_type dimension () const
ordinal_type size () const
const ordinal_type & operator[] (ordinal_type i) const
 Term access.
ordinal_type & operator[] (ordinal_type i)
 Term access.
const Teuchos::Array
< element_type > & 
getTerm () const
 Term access.
Teuchos::Array< element_type > & getTerm ()
 Term access.
void init (ordinal_type v)
void resize (ordinal_type d, ordinal_type v=ordinal_type(0))
ordinal_type order () const
 Compute total order of index.
bool operator== (const MultiIndex &idx) const
 Compare equality.
bool operator!= (const MultiIndex &idx) const
 Compare equality.
bool termWiseLEQ (const MultiIndex &idx) const
 Compare term-wise less-than or equal-to.
std::ostream & print (std::ostream &os) const
 Print multiindex.

Protected Attributes

Teuchos::Array< ordinal_type > index
 index terms

Detailed Description

template<typename ordinal_t>
class Stokhos::MultiIndex< ordinal_t >

A multidimensional index.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator