#include <Epetra_Util.h>
Public Member Functions | |
| Epetra_Util () | |
| Epetra_Util Constructor. | |
| Epetra_Util (const Epetra_Util &Util) | |
| Epetra_Util Copy Constructor. | |
| virtual | ~Epetra_Util () |
| Epetra_Util Destructor. | |
Random number utilities | |
| unsigned int | RandomInt () |
| Returns a random integer on the interval (0, 2^31-1). | |
| double | RandomDouble () |
| Returns a random double on the interval (-1.0,1.0). | |
| unsigned int | Seed () const |
| Get seed from Random function. | |
| int | SetSeed (unsigned int Seed) |
| Set seed for Random function. | |
Static Public Member Functions | |
| void | Sort (bool SortAscending, int NumKeys, int *Keys, int NumDoubleCompanions, double **DoubleCompanions, int NumIntCompanions, int **IntCompanions) |
| Epetra_Util Sort Routine (Shell sort). | |
| Epetra_Map | Create_Root_Map (const Epetra_Map &usermap, int root=0) |
| Epetra_Util Create_Root_Map function. | |
| Epetra_Map | Create_OneToOne_Map (const Epetra_Map &usermap, bool high_rank_proc_owns_shared=false) |
| Epetra_Util Create_OneToOne_Map function. | |
| Epetra_BlockMap | Create_OneToOne_BlockMap (const Epetra_BlockMap &usermap, bool high_rank_proc_owns_shared=false) |
| Epetra_Util Create_OneToOne_Map function. | |
| double | Chop (const double &Value) |
| Epetra_Util Chop method. Return zero if input Value is less than ChopValue. | |
Static Public Attributes | |
| const double | chopVal_ |
The Epetra_Util class is a collection of useful functions that cut across a broad set of other classes.
The random number generator is a multiplicative linear congruential generator, with multiplier 16807 and modulus 2^31 - 1. It is based on the algorithm described in "Random Number Generators: Good Ones Are Hard To Find", S. K. Park and K. W. Miller, Communications of the ACM, vol. 31, no. 10, pp. 1192-1201.
Epetra_Util is a serial interface only. This is appropriate since the standard utilities are only specified for serial execution (or shared memory parallel).
|
|
Epetra_Util Constructor. Builds an instance of a serial Util object. |
|
|
Epetra_Util Copy Constructor. Makes an exact copy of an existing Epetra_Util instance. |
|
||||||||||||
|
Epetra_Util Create_OneToOne_Map function. Function to create a new Epetra_Map object with 1-to-1 ownership of entries from an existing map which may have entries that appear on multiple processors. |
|
||||||||||||
|
Epetra_Util Create_OneToOne_Map function. Function to create a new Epetra_Map object with 1-to-1 ownership of entries from an existing map which may have entries that appear on multiple processors. |
|
||||||||||||
|
Epetra_Util Create_Root_Map function. Function to create a new Epetra_Map object with all GIDs sent to the root processor which is zero by default. All all processors will have no GIDs. This root map can then be used to create an importer or exporter that will migrate all data to the root processor. If root is set to -1 then the user map will be replicated completely on all processors. |
|
|
Get seed from Random function.
|
|
|
Set seed for Random function.
|
|
||||||||||||||||||||||||||||||||
|
Epetra_Util Sort Routine (Shell sort). This function sorts a list of integer values in ascending or descending order. Additionally it sorts any number of companion lists of doubles or ints. A shell sort is used, which is fast if indices are already sorted.
|
1.3.9.1