#include <Epetra_IntVector.h>
Inheritance diagram for Epetra_IntVector:
Constructors/destructors | |
| Epetra_IntVector (const Epetra_BlockMap &Map, bool zeroOut=true) | |
| Basic Epetra_IntVector constuctor. | |
| Epetra_IntVector (const Epetra_IntVector &Source) | |
| Epetra_IntVector copy constructor. | |
| Epetra_IntVector (Epetra_DataAccess CV, const Epetra_BlockMap &Map, int *V) | |
| Set vector values from user array. | |
| virtual | ~Epetra_IntVector () |
| Epetra_IntVector destructor. | |
Post-construction modification methods | |
| int | PutValue (int Value) |
| Set all elements of the vector to Value. | |
Extraction methods | |
| int | ExtractCopy (int *V) const |
| Put vector values into user-provided array. | |
| int | ExtractView (int **V) const |
| Set user-provided address of V. | |
Mathematical methods | |
| int | MaxValue () |
| Find maximum value. | |
| int | MinValue () |
| Find minimum value. | |
Overloaded operators | |
| Epetra_IntVector & | operator= (const Epetra_IntVector &Source) |
| = Operator. | |
| int & | operator[] (int index) |
| Element access function. | |
| const int & | operator[] (int index) const |
| Element access function. | |
Attribute access functions | |
| int * | Values () const |
| Returns a pointer to an array containing the values of this vector. | |
| int | MyLength () const |
| Returns the local vector length on the calling processor of vectors in the multi-vector. | |
| int | GlobalLength () const |
| Returns the global vector length of vectors in the multi-vector. | |
I/O methods | |
| virtual void | Print (ostream &os) const |
| Print method. | |
Private Member Functions | |
| int | AllocateForCopy () |
| int | DoCopy (int *V) |
| int | AllocateForView () |
| int | DoView (int *V) |
| int | CheckSizes (const Epetra_SrcDistObject &A) |
| Allows the source and target (this) objects to be compared for compatibility, return nonzero if not. | |
| int | CopyAndPermute (const Epetra_SrcDistObject &Source, int NumSameIDs, int NumPermuteIDs, int *PermuteToLIDs, int *PermuteFromLIDs, const Epetra_OffsetIndex *Indexor) |
| Perform ID copies and permutations that are on processor. | |
| int | PackAndPrepare (const Epetra_SrcDistObject &Source, int NumExportIDs, int *ExportLIDs, int &LenExports, char *&Exports, int &SizeOfPacket, int *Sizes, bool &VarSizes, Epetra_Distributor &Distor) |
| Perform any packing or preparation required for call to DoTransfer(). | |
| 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) |
| Perform any unpacking and combining after call to DoTransfer(). | |
Private Attributes | |
| int * | Values_ |
| bool | UserAllocated_ |
| bool | Allocated_ |
The Epetra_IntVector class enables the construction and use of integer dense vectors in a distributed memory environment. The distribution of the dense vector is determined in part by a Epetra_Comm object and a Epetra_Map (or Epetra_LocalMap or Epetra_BlockMap).
Distributed Global vs. Replicated Local
Constructing Epetra_IntVectors
There are four Epetra_IntVector constructors. The first is a basic constructor that allocates space and sets all values to zero, the second is a copy constructor. The third and fourth constructors work with user data. These constructors have two data access modes:
map is a Epetra_Map, Epetra_LocalMap or Epetra_BlockMap object describing the desired memory layout for the vector.There are four different Epetra_IntVector constructors:
Extracting Data from Epetra_IntVectors
Once a Epetra_IntVector is constructed, it is possible to extract a copy of the values or create a view of them.
Definition at line 111 of file Epetra_IntVector.h.
|
||||||||||||
|
Basic Epetra_IntVector constuctor. Creates a Epetra_IntVector object and, by default, fills with zero values.
Definition at line 34 of file Epetra_IntVector.cpp. |
|
|
Epetra_IntVector copy constructor.
Definition at line 44 of file Epetra_IntVector.cpp. |
|
||||||||||||||||
|
Set vector values from user array.
Definition at line 54 of file Epetra_IntVector.cpp. |
|
|
Epetra_IntVector destructor.
Definition at line 70 of file Epetra_IntVector.cpp. |
|
|
Set all elements of the vector to Value.
Definition at line 135 of file Epetra_IntVector.cpp. |
|
|
Put vector values into user-provided array.
Definition at line 120 of file Epetra_IntVector.cpp. |
|
|
Set user-provided address of V.
Definition at line 128 of file Epetra_IntVector.cpp. |
|
|
Find maximum value.
Definition at line 141 of file Epetra_IntVector.cpp. |
|
|
Find minimum value.
Definition at line 152 of file Epetra_IntVector.cpp. |
|
|
= Operator.
Definition at line 163 of file Epetra_IntVector.cpp. |
|
|
Element access function.
Definition at line 222 of file Epetra_IntVector.h. |
|
|
Element access function.
Definition at line 227 of file Epetra_IntVector.h. |
|
|
Returns a pointer to an array containing the values of this vector.
Definition at line 234 of file Epetra_IntVector.h. |
|
|
Returns the local vector length on the calling processor of vectors in the multi-vector.
Definition at line 237 of file Epetra_IntVector.h. |
|
|
Returns the global vector length of vectors in the multi-vector.
Definition at line 240 of file Epetra_IntVector.h. |
|
|
Print method.
Reimplemented from Epetra_DistObject. Definition at line 175 of file Epetra_IntVector.cpp. |
|
|
Definition at line 77 of file Epetra_IntVector.cpp. |
|
|
Definition at line 94 of file Epetra_IntVector.cpp. |
|
|
Definition at line 102 of file Epetra_IntVector.cpp. |
|
|
Definition at line 112 of file Epetra_IntVector.cpp. |
|
|
Allows the source and target (this) objects to be compared for compatibility, return nonzero if not.
Implements Epetra_DistObject. Definition at line 229 of file Epetra_IntVector.cpp. |
|
||||||||||||||||||||||||||||
|
Perform ID copies and permutations that are on processor.
Implements Epetra_DistObject. Definition at line 236 of file Epetra_IntVector.cpp. |
|
||||||||||||||||||||||||||||||||||||||||
|
Perform any packing or preparation required for call to DoTransfer().
Implements Epetra_DistObject. Definition at line 327 of file Epetra_IntVector.cpp. |
|
||||||||||||||||||||||||||||||||||||||||
|
Perform any unpacking and combining after call to DoTransfer().
Implements Epetra_DistObject. Definition at line 401 of file Epetra_IntVector.cpp. |
|
|
Definition at line 286 of file Epetra_IntVector.h. |
|
|
Definition at line 287 of file Epetra_IntVector.h. |
|
|
Definition at line 288 of file Epetra_IntVector.h. |
1.3.9.1