#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.
| Epetra_IntVector::Epetra_IntVector | ( | const Epetra_BlockMap & | Map, | |
| bool | zeroOut = true | |||
| ) |
Basic Epetra_IntVector constuctor.
Creates a Epetra_IntVector object and, by default, fills with zero values.
| In | Map - A Epetra_LocalMap, Epetra_Map or Epetra_BlockMap. |
| In | zeroOut - If true then the allocated memory will be zeroed out initialy. If false then this memory will not be touched which can be significantly faster. |
| Epetra_IntVector::Epetra_IntVector | ( | Epetra_DataAccess | CV, | |
| const Epetra_BlockMap & | Map, | |||
| int * | V | |||
| ) |
Set vector values from user array.
| In | Epetra_DataAccess - Enumerated type set to Copy or View. | |
| In | Map - A Epetra_LocalMap, Epetra_Map or Epetra_BlockMap. | |
| In | V - Pointer to an array of integer numbers.. |
| int Epetra_IntVector::ExtractCopy | ( | int * | V | ) | const |
Put vector values into user-provided array.
| Out | V - Pointer to memory space that will contain the vector values. |
| int Epetra_IntVector::ExtractView | ( | int ** | V | ) | const |
Set user-provided address of V.
| Out | V - Address of a pointer to that will be set to point to the values of the vector. |
| int Epetra_IntVector::MaxValue | ( | ) |
Find maximum value.
| int Epetra_IntVector::MinValue | ( | ) |
Find minimum value.
| Epetra_IntVector& Epetra_IntVector::operator= | ( | const Epetra_IntVector & | Source | ) |
| const int& Epetra_IntVector::operator[] | ( | int | index | ) | const [inline] |
Element access function.
| int& Epetra_IntVector::operator[] | ( | int | index | ) | [inline] |
Element access function.
1.4.7