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

Public Member Functions

 CcjGatherIntArray (int groupSize)
 
void setElementAt (int index, int groupSize, Serializable object)
 
Serializable elementAt (int index, int groupSize)
 
int[] getAllElements ()
 
int[][] getAllElements2dArray ()
 
int[] scanSums (int index)
 

Detailed Description

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

Author
Jason Cross

Constructor & Destructor Documentation

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

Creates a new CcjGatherIntArray.

Parameters
groupSizenumber of processes in the group

Member Function Documentation

Serializable Jpetra.CcjSupport.CcjGatherIntArray.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
int [] Jpetra.CcjSupport.CcjGatherIntArray.getAllElements ( )
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

int [] Jpetra.CcjSupport.CcjGatherIntArray.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.CcjGatherIntArray.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: