Stokhos::Sparse3Tensor< ordinal_type, value_type > Class Template Reference

Data structure storing a sparse 3-tensor C(i,j,k) in a a compressed format. More...

#include <Stokhos_Sparse3Tensor.hpp>

List of all members.

Public Member Functions

 Sparse3Tensor (ordinal_type sz)
 Constructor.
 ~Sparse3Tensor ()
 Destructor.
ordinal_type size () const
 Return size.
ordinal_type num_values (ordinal_type k) const
 Return number of n of non-zero's in C(:,:,k) for a given k.
void value (ordinal_type k, ordinal_type l, ordinal_type &i, ordinal_type &j, value_type &c) const
 Get value C(i,j,k) for 0 <= l < n for a given k.
void add_term (ordinal_type i, ordinal_type j, ordinal_type k, const value_type &c)
 Add new term for given (i,j,k).
void print (std::ostream &os) const
 Print tensor.
ordinal_type num_j (ordinal_type k) const
ordinal_type j_index (ordinal_type k, ordinal_type l) const
const Teuchos::Array< ordinal_type > & Jindices (ordinal_type k) const
const Teuchos::Array< ordinal_type > & Iindices (ordinal_type k, ordinal_type l) const
const Teuchos::Array< value_type > & values (ordinal_type k, ordinal_type l) const

Protected Attributes

Teuchos::Array< Teuchos::Array<
ordinal_type > > 
i_indices
 i-indices in Cijk for each k
Teuchos::Array< Teuchos::Array<
ordinal_type > > 
j_indices
 j-indices in Cijk for each k
Teuchos::Array< Teuchos::Array<
value_type > > 
Cijk_values
 values in Cijk for each k
Teuchos::Array< Teuchos::Array<
JValues > > 
j_values
 i-indices in Cijk for each k
Teuchos::Array< Teuchos::Array<
ordinal_type > > 
j_indices2
 j-indices in Cijk for each k

Classes

struct  JValues


Detailed Description

template<typename ordinal_type, typename value_type>
class Stokhos::Sparse3Tensor< ordinal_type, value_type >

Data structure storing a sparse 3-tensor C(i,j,k) in a a compressed format.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:25:04 2010 for Stokhos by  doxygen 1.4.7