Teuchos::MPIContainerComm< T > Class Template Reference

Object representation of an MPI communicator for templated containers. More...

#include <Teuchos_MPIContainerComm.hpp>

List of all members.

Static Public Member Functions

void bcast (T &x, int src, const MPIComm &comm)
 Broadcast a single object.
void bcast (Array< T > &x, int src, const MPIComm &comm)
 Broadcast an array of objects.
void bcast (Array< Array< T > > &x, int src, const MPIComm &comm)
 Broadcast an array of arrays.
void allGather (const T &outgoing, Array< T > &incoming, const MPIComm &comm)
 Gather to all processors.
void allToAll (const Array< T > &outgoing, Array< Array< T > > &incoming, const MPIComm &comm)
 All-to-all scatter/gather for an array of objects.
void allToAll (const Array< Array< T > > &outgoing, Array< Array< T > > &incoming, const MPIComm &comm)
 All-to-all scatter/gather for an array of arrays.
void accumulate (const T &localValue, Array< T > &sums, T &total, const MPIComm &comm)
 Sum local values from all processors with rank < myRank.

Static Private Member Functions

void getBigArray (const Array< Array< T > > &x, Array< T > &bigArray, Array< int > &offsets)
 Build a 1D array and an offset list from a 2D array.
void getSmallArrays (const Array< T > &bigArray, const Array< int > &offsets, Array< Array< T > > &x)
 Reassemble a 2D array from a 1D array and an offset table.


Detailed Description

template<class T>
class Teuchos::MPIContainerComm< T >

Object representation of an MPI communicator for templated containers.

Note:
Template specialization exists for string.
Author:
Kevin Long

Definition at line 49 of file Teuchos_MPIContainerComm.hpp.


Member Function Documentation

template<class T>
void Teuchos::MPIContainerComm< T >::bcast T &  x,
int  src,
const MPIComm comm
[inline, static]
 

Broadcast a single object.

Definition at line 135 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::bcast Array< T > &  x,
int  src,
const MPIComm comm
[inline, static]
 

Broadcast an array of objects.

Definition at line 145 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::bcast Array< Array< T > > &  x,
int  src,
const MPIComm comm
[inline, static]
 

Broadcast an array of arrays.

Definition at line 167 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::allGather const T &  outgoing,
Array< T > &  incoming,
const MPIComm comm
[inline, static]
 

Gather to all processors.

Definition at line 331 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::allToAll const Array< T > &  outgoing,
Array< Array< T > > &  incoming,
const MPIComm comm
[inline, static]
 

All-to-all scatter/gather for an array of objects.

Definition at line 189 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::allToAll const Array< Array< T > > &  outgoing,
Array< Array< T > > &  incoming,
const MPIComm comm
[inline, static]
 

All-to-all scatter/gather for an array of arrays.

Definition at line 238 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::accumulate const T &  localValue,
Array< T > &  sums,
T &  total,
const MPIComm comm
[inline, static]
 

Sum local values from all processors with rank < myRank.

Definition at line 349 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::getBigArray const Array< Array< T > > &  x,
Array< T > &  bigArray,
Array< int > &  offsets
[inline, static, private]
 

Build a 1D array and an offset list from a 2D array.

Definition at line 370 of file Teuchos_MPIContainerComm.hpp.

template<class T>
void Teuchos::MPIContainerComm< T >::getSmallArrays const Array< T > &  bigArray,
const Array< int > &  offsets,
Array< Array< T > > &  x
[inline, static, private]
 

Reassemble a 2D array from a 1D array and an offset table.

Definition at line 395 of file Teuchos_MPIContainerComm.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:41:20 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1