Stokhos Development
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
Stokhos::EpetraSparse3Tensor Class Reference

List of all members.

Public Member Functions

 EpetraSparse3Tensor (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Stokhos::Sparse3Tensor< int, double > > &Cijk, const Teuchos::RCP< const EpetraExt::MultiComm > &globalMultiComm, int k_begin=0, int k_end=-1)
 Constructor from a full Cijk.
 EpetraSparse3Tensor (const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Stokhos::Sparse3Tensor< int, double > > &Cijk, const Teuchos::RCP< const EpetraExt::MultiComm > &globalMultiComm, const Teuchos::RCP< const Epetra_BlockMap > &stoch_row_map, const Teuchos::RCP< const Stokhos::Sparse3Tensor< int, double > > &Cijk_parallel=Teuchos::null, int k_begin=0, int k_end=-1)
 Constructor from an already parallelized Cijk.
 EpetraSparse3Tensor (const EpetraSparse3Tensor &epetraCijk, int k_begin_=0, int k_end_=-1)
 Copy constructor with possible change in scaling and k limits.
 ~EpetraSparse3Tensor ()
 Destructor.
void rebalance (Teuchos::ParameterList &isorropia_params)
 Rebalance maps and graph using Isorropia.
void transformToLocal ()
 Transform Cijk to local i and j indices.
int getKBegin () const
 Return k_begin index.
int getKEnd () const
 Return k_end index.
bool isStochasticParallel () const
 Return whether stochastic blocks are parallel distributed.
int GRID (int lrid) const
 Return global row id for given local row id.
int GCID (int lcid) const
 Return global column id for given local column id.
bool myGRID (int grid) const
 Return true if global row id is on processor.
bool myGCID (int gcid) const
 Return true if global column id is on processor.
int numMyRows () const
 Return number of rows on this processor.
int numMyCols () const
 Return number of columns on this processor.
Teuchos::RCP< const
EpetraExt::MultiComm > 
getMultiComm () const
 Get global comm.
Teuchos::RCP< const Epetra_Comm > getStochasticComm () const
 Get stochastic comm.
Teuchos::RCP< const
Epetra_BlockMap > 
getStochasticRowMap () const
 Get stochastic row map.
Teuchos::RCP< const
Epetra_BlockMap > 
getStochasticColMap () const
 Get stochastic column map.
Teuchos::RCP< const
Stokhos::Sparse3Tensor< int,
double > > 
getCijk () const
 Get Cijk.
Teuchos::RCP< const
Stokhos::Sparse3Tensor< int,
double > > 
getParallelCijk () const
 Get parallel Cijk.
Teuchos::RCP< const
Epetra_CrsGraph > 
getStochasticGraph () const
 Get stochastic graph.

Protected Types

typedef Stokhos::Sparse3Tensor
< int, double > 
Cijk_type

Protected Member Functions

Teuchos::RCP< Cijk_typebuildParallelCijk () const
 Build parallel Cijk tensor from a parallel row map.

Protected Attributes

Teuchos::RCP< const
Stokhos::OrthogPolyBasis< int,
double > > 
basis
 Basis.
Teuchos::RCP< const Cijk_typeCijk
 Triple product.
Teuchos::RCP< const
EpetraExt::MultiComm > 
globalMultiComm
 Multi-comm.
int num_global_stoch_blocks
 Number of global stochastic blocks.
int k_begin
 Beginning of k index.
int k_end
 End of k index.
Teuchos::RCP< const Epetra_Comm > stoch_comm
 Stochastic comm.
bool is_parallel
 Whether stochastic blocks are parallel.
Teuchos::RCP< const
Epetra_BlockMap > 
stoch_row_map
 Stochastic row-map.
Teuchos::RCP< const
Epetra_BlockMap > 
stoch_col_map
 Stochastic col-map.
Teuchos::RCP< const Cijk_typeCijk_parallel
 Cijk tensor parallel over i.
Teuchos::RCP< const
Epetra_CrsGraph > 
stoch_graph
 Stochastic operator graph.

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