#include <Epetra_IntVector.h>
Inheritance diagram for Epetra_IntVector:
Public Member Functions | |
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. | |
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.
|
||||||||||||
|
Basic Epetra_IntVector constuctor. Creates a Epetra_IntVector object and, by default, fills with zero values.
|
|
||||||||||||||||
|
Set vector values from user array.
|
|
|
Put vector values into user-provided array.
|
|
|
Set user-provided address of V.
|
|
|
Find maximum value.
|
|
|
Find minimum value.
|
|
|
= Operator.
|
|
|
Element access function.
|
|
|
Element access function.
|
1.3.9.1