EpetraExt Package Browser (Single Doxygen Collection)
Development
|
DistArray<T>: A class to store row-oriented multivectors of type T. More...
#include <EpetraExt_DistArray.h>
DistArray (const Epetra_Map &Map, const int RowSize) | |
Constructor for a given Map and RowSize . More... | |
int | MyLength () const |
Returns the length of the locally owned array. More... | |
int | GlobalLength () const |
Returns the global length of the array. More... | |
int | RowSize () const |
Returns the row size, that is, the amount of data associated with each element. More... | |
T & | operator() (const int LEID, const int ID) |
Returns a reference to the ID component of the LEID local element. More... | |
T & | operator() (const int GEID, const int ID, const bool isLocal) |
void | Print (std::ostream &os) const |
Prints the array on the specified stream. More... | |
int | NextGID () |
int | FirstGID () |
const std::vector< T > & | ExtractView () const |
Extracts a view of the array. More... | |
T * | Values () |
Returns a pointer to the internally stored data (non-const version). More... | |
const T * | Values () const |
Returns a pointer to the internally stored data (const version). More... | |
virtual int | CheckSizes (const Epetra_SrcDistObject &Source) |
virtual int | CopyAndPermute (const Epetra_SrcDistObject &Source, int NumSameIDs, int NumPermuteIDs, int *PermuteToLIDs, int *PermuteFromLIDs, const Epetra_OffsetIndex *Indexor, Epetra_CombineMode CombineMode=Zero) |
virtual int | PackAndPrepare (const Epetra_SrcDistObject &Source, int NumExportIDs, int *ExportLIDs, int &LenExports, char *&Exports, int &SizeOfPacket, int *Sizes, bool &VarSizes, Epetra_Distributor &Distor) |
virtual int | UnpackAndCombine (const Epetra_SrcDistObject &Source, int NumImportIDs, int *ImportLIDs, int LenImports, char *Imports, int &SizeOfPacket, Epetra_Distributor &Distor, Epetra_CombineMode CombineMode, const Epetra_OffsetIndex *Indexor) |
std::vector< T > | values_ |
Container of local data. More... | |
int | MyLength_ |
Length of the locally owned array. More... | |
int | GlobalLength_ |
Length of the global array. More... | |
int | RowSize_ |
Amount of data associated with each element. More... | |
int | count_ |
int | last_ |
Additional Inherited Members | |
Public Member Functions inherited from Epetra_SrcDistObject | |
virtual const Epetra_BlockMap & | Map () const =0 |
DistArray<T>: A class to store row-oriented multivectors of type T.
Class DistArray allows the construction and usage of multivectors. These vectors contain element of type T, and the storage is row-oriented, and not column-oriented as in class Epetra_MultiVector. As such, this class should be used as a container for data, on which no BLAS-like operations are performed.
DistArray objects are indentified by an Epetra_Map
and a RowSize
. The map specifies the distribution of the elements across the processors and therefore the number of local elements, while the RowSize gives the total number of data assigned to each node. RowSize is constant for all elements.
DistArray is derived from Epetra_DistObject, and it can therefore be redistributed using Import/Export instructions.
The typical usage of this class is as follows:
Definition at line 91 of file EpetraExt_DistArray.h.
|
inline |
Constructor for a given Map
and RowSize
.
Definition at line 97 of file EpetraExt_DistArray.h.
|
inline |
Returns the length of the locally owned array.
Definition at line 119 of file EpetraExt_DistArray.h.
|
inline |
Returns the global length of the array.
Definition at line 125 of file EpetraExt_DistArray.h.
|
inline |
Returns the row size, that is, the amount of data associated with each element.
Definition at line 131 of file EpetraExt_DistArray.h.
|
inline |
Returns a reference to the ID
component of the LEID
local element.
Definition at line 137 of file EpetraExt_DistArray.h.
|
inline |
Definition at line 143 of file EpetraExt_DistArray.h.
|
inlinevirtual |
Prints the array on the specified stream.
Reimplemented from Epetra_DistObject.
Definition at line 152 of file EpetraExt_DistArray.h.
|
inline |
Definition at line 182 of file EpetraExt_DistArray.h.
|
inline |
Definition at line 191 of file EpetraExt_DistArray.h.
|
inline |
Extracts a view of the array.
Definition at line 198 of file EpetraExt_DistArray.h.
|
inline |
Returns a pointer to the internally stored data (non-const version).
Definition at line 204 of file EpetraExt_DistArray.h.
|
inline |
Returns a pointer to the internally stored data (const version).
Definition at line 210 of file EpetraExt_DistArray.h.
|
inlineprivatevirtual |
Implements Epetra_DistObject.
Definition at line 219 of file EpetraExt_DistArray.h.
|
inlineprivatevirtual |
Implements Epetra_DistObject.
Definition at line 224 of file EpetraExt_DistArray.h.
|
inlineprivatevirtual |
Implements Epetra_DistObject.
Definition at line 270 of file EpetraExt_DistArray.h.
|
inlineprivatevirtual |
Implements Epetra_DistObject.
Definition at line 310 of file EpetraExt_DistArray.h.
|
private |
Container of local data.
Definition at line 348 of file EpetraExt_DistArray.h.
|
private |
Length of the locally owned array.
Definition at line 350 of file EpetraExt_DistArray.h.
|
private |
Length of the global array.
Definition at line 352 of file EpetraExt_DistArray.h.
|
private |
Amount of data associated with each element.
Definition at line 354 of file EpetraExt_DistArray.h.
|
private |
Definition at line 355 of file EpetraExt_DistArray.h.
|
private |
Definition at line 356 of file EpetraExt_DistArray.h.