Jpetra Development
Public Member Functions | Static Public Member Functions | Static Public Attributes
Jpetra::CisMatrix Class Reference
Inheritance diagram for Jpetra::CisMatrix:
Inheritance graph
[legend]
Collaboration diagram for Jpetra::CisMatrix:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CisMatrix (VectorSpace primaryVectorSpace, boolean rowOriented)
void insertEntries (int localRowColId, int[] indices, double[] entries, int combineMode)
void insertEntry (int localRowColId, int index, double entry, int combineMode)
void fillComplete ()
void scale (double scaler)
void printOutAllVnodes (String iostream)
void printOut (String iostream)
void printOut (String iostream, boolean all)
int getNumMyNonZeros ()
int getNumGlobalRows ()
int getNumGlobalColumns ()
int getNumMyRows ()
int getNumMyColumns ()
boolean isRowOriented ()
Graph getGraph ()
double[] getEntriesArray ()
int[] getNumEntriesArray ()
int[] getStartIndex ()
int[] getNumEntries ()
boolean isFilled ()
VectorSpace getVectorSpace ()
Serializable[] packAndPrepare (DistObject distObjectSource, int[] exportGids, int[] exportLids)
int[][] unpackAndCombine (Serializable[] importData, int combineMode)
void copyAndPermute (DistObject distObjectSource, int numSameGids, int[] permuteToLids, int[] permuteFromLids, int combineMode)
VectorSpace getColumnVectorSpace ()
VectorSpace getRowVectorSpace ()
VectorSpace getPrimaryVectorSpace ()
VectorSpace getSecondaryVectorSpace ()
void multiply (boolean useTransposeA, MultiVector x, MultiVector y)
void writeExternal (ObjectOutput out) throws java.io.IOException
void readExternal (ObjectInput in) throws java.io.IOException, ClassNotFoundException
Object clone ()
boolean equals (Object obj)

Static Public Member Functions

static CisMatrix readFromFile (String fileName, Comm comm)
static void writeToFile (String fileName, CisMatrix cisMatrix)

Static Public Attributes

static final boolean ROW_ORIENTED = true
static final boolean COL_ORIENTED = false
static final boolean USE_TRANSPOSE_A = true
static final boolean USE_A = false

Detailed Description

Author:
Jason Cross

Constructor & Destructor Documentation

Jpetra::CisMatrix::CisMatrix ( VectorSpace  primaryVectorSpace,
boolean  rowOriented 
) [inline]

Construct an empty CisMatrix. The secondaryVectorSpace will be generated automatically once fillComplete is called.

Parameters:
primaryVectorSpacedescribes what global elemenets this CisMatrix owns
rowOrienteddetermines whether the CisMatrix is row or column oriented

Member Function Documentation

void Jpetra::CisMatrix::copyAndPermute ( DistObject  distObjectSource,
int  numSameGids,
int[]  permuteToLids,
int[]  permuteFromLids,
int  combineMode 
) [inline, virtual]

Should not be called directly by the user.

This method must be overridden by classes extending DistObject.

Parameters:
distObjectSourceThe object from which local values will be copied and permuted.
numSameGidsThe number of global ids that are the same starting from myMinGlobalEntryId.
permuteToLidsThe local IDs of this DistObject that will permute elements from distObjectSource according to the corresponding local IDs in permuteFromLids.
permuteFromLidsThe local IDs from distObjectSource that will be permuted to the local IDs in permuteToLids correspndong to this DistObject.
combineModeOne of the declared combine mode constants in DistObject.

Implements Jpetra::DistObject.

Serializable [] Jpetra::CisMatrix::packAndPrepare ( DistObject  distObjectSource,
int[]  exportGids,
int[]  exportLids 
) [inline, virtual]

Should not be called directly by the user.

This method must be overridden by classes extending DistObject.

Parameters:
distObjectSourceThe object from which elements will be packedup for exportation to other vnodes.
exportGidsThe global IDs of the elements to be exported.
exportLidsThe local IDs of elements to be exported.
Returns:
The packed data that Distributor.distribute will export to other vnodes.

Implements Jpetra::DistObject.

int [][] Jpetra::CisMatrix::unpackAndCombine ( Serializable[]  importData,
int  combineMode 
) [inline, virtual]

Should not be called directly by the user.

This method must be overridden by classes extending DistObject.

Parameters:
importDataThe data object returned from Distributor.distribute which contains all elements sent to this vnode.
combineModeOne of the declared combine mode constants in DistObject.

Implements Jpetra::DistObject.


Member Data Documentation

final boolean Jpetra::CisMatrix::COL_ORIENTED = false [static]

Pass to the CisMatrix constructor to make the CisMatrix col oriented.

final boolean Jpetra::CisMatrix::ROW_ORIENTED = true [static]

Pass to the CisMatrix constructor to make the CisMatrix row oriented.


The documentation for this class was generated from the following file:
 All Classes Functions Variables