Jpetra  Development
 All Classes Functions Variables
Public Member Functions | List of all members
Jpetra.CcjSupport.CcjGatherDoubleArray Class Reference
Inheritance diagram for Jpetra.CcjSupport.CcjGatherDoubleArray:
Inheritance graph
[legend]
Collaboration diagram for Jpetra.CcjSupport.CcjGatherDoubleArray:
Collaboration graph
[legend]

Public Member Functions

 CcjGatherDoubleArray (int groupSize)
 
void setElementAt (int index, int groupSize, Serializable object)
 
Serializable elementAt (int index, int groupSize)
 
double[] returnAllElements ()
 
double[] scanSums (int index)
 

Detailed Description

Used by CCJ to collect all the allElements together during a CCJ allGather call. Implements the CCJ interface Partitionable.

Author
Jason Cross

Constructor & Destructor Documentation

Jpetra.CcjSupport.CcjGatherDoubleArray.CcjGatherDoubleArray ( int  groupSize)
inline

Creates a new CcjGatherDoubleArray.

Parameters
groupSizenumber of processes in the group

Member Function Documentation

Serializable Jpetra.CcjSupport.CcjGatherDoubleArray.elementAt ( int  index,
int  groupSize 
)
inline

Used internally by CCJ.

Parameters
indexprocess ID or rank
groupSizenumber of processes in the group
Returns
ArrayList from process with this index
double [] Jpetra.CcjSupport.CcjGatherDoubleArray.returnAllElements ( )
inline

Takes all second degree elements of allElements and joins them into one int array.

Returns
all arrays from all proceses put in order by process into one int array

the size of the int array to be returned

tracks the position of returnResults when performing the joining of allElements

contains the contiguous list of values to be returned

double [] Jpetra.CcjSupport.CcjGatherDoubleArray.scanSums ( int  index)
inline

Starts at allElements[index] and decraments down allElements adding all second degree values of allElements to the second degree values of allElements[index].

Parameters
indexequal to the rank of the calling process
Returns
array of scan sums
void Jpetra.CcjSupport.CcjGatherDoubleArray.setElementAt ( int  index,
int  groupSize,
Serializable  object 
)
inline

Used internally by CCJ.

Parameters
indexprocess ID or rank
groupSizenumber of processes in the group
objectobject being added to allElements[index]

The documentation for this class was generated from the following file: