25 #ifndef UQ_DIST_ARRAY_H 
   26 #define UQ_DIST_ARRAY_H 
   28 #include <queso/Defines.h> 
   29 #include <queso/Map.h> 
   30 #ifdef QUESO_HAS_TRILINOS 
   31 #include <EpetraExt_DistArray.h> 
   64                    const int         inputRowSize);
 
   86   const T&   
operator    ()(
int localElementId, 
int colId) 
const;
 
  101   void print       (std::ostream& os) 
const;
 
  102   friend std::ostream & operator<<(std::ostream& os, const DistArray<T>& obj)
 
  118 #ifdef QUESO_HAS_TRILINOS 
  119   EpetraExt::DistArray<T>*     m_epetraDistArray;
 
  128 #endif // UQ_DIST_ARRAY_H 
void copy(const DistArray< T > &src)
Copies the array. 
 
A class for partitioning vectors and matrices. 
 
A class for partitioning vectors and matrices. 
 
DistArray< T > & operator=(const DistArray< T > &rhs)
Assignment operator. 
 
DistArray()
Default constructor. Do not call this directly. 
 
std::vector< std::vector< T > > m_elements
 
int MyLength() const 
Returns the length of the locally owned array. 
 
int RowSize() const 
Returns the row size, that is, the amount of data associated with each element. 
 
T & operator()(int localElementId, int colId)
Returns a reference to the colId column component of the localElementId local element. 
 
void print(std::ostream &os) const 
 
int GlobalLength() const 
Returns the global length of the array.