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

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)
 
- Public Member Functions inherited from Jpetra.DistObject
 DistObject ()
 
void importValues (DistObject distObjectSource, Import importer, int combineMode)
 
void importValues (DistObject distObjectSource, Export exporter, int combineMode)
 
void exportValues (DistObject distObjectSource, Import importer, int combineMode)
 
void exportValues (DistObject distObjectSource, Export exporter, int combineMode)
 
void doTransfer (DistObject distObjectSource, int numSameGids, int[] permuteToLids, int[] permuteFromLids, int[] exportGids, int[] exportLids, int combineMode, boolean doReverse)
 
abstract Serializable[] packAndPrepare (DistObject distObjectSource, int[] exportGids, int[] exportLids)
 
abstract int[][] unpackAndCombine (Serializable[] importData, int combineMode)
 
abstract void copyAndPermute (DistObject distObjectSource, int numSameGids, int[] permuteToLids, int[] permuteFromLids, int combineMode)
 
abstract VectorSpace getVectorSpace ()
 
void setFlopCounter (FlopCounter flops)
 
void updateFlops (double numFlops)
 
void resetFlops ()
 
double getFlops ()
 
double getGlobalMegaFlops (Comm comm)
 
FlopCounter getFlopCounter ()
 
- Public Member Functions inherited from Jpetra.JpetraObject
 JpetraObject ()
 
void initializeOutput ()
 

Static Public Member Functions

static CisMatrix readFromFile (String fileName, Comm comm)
 
static void writeToFile (String fileName, CisMatrix cisMatrix)
 
- Static Public Member Functions inherited from Jpetra.JpetraObject
static void setRootPrint (String key, boolean rootPrint)
 
static void setRootStream (String key, PrintStream rootStream)
 
static void setVnodesPrint (String key, boolean vnodesPrint)
 
static void setVnodesStream (String key, PrintStream vnodesStream)
 
static void print (String key, String message)
 
static void println (String key, String message)
 
static void setAmIroot (Comm comm)
 

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
 
- Static Public Attributes inherited from Jpetra.DistObject
static final int ADD = 0
 
static final int ZERO = 1
 
static final int AVERAGE = 2
 
static final int ABSMAX = 3
 
static final int REPLACE = 4
 
- Static Public Attributes inherited from Jpetra.JpetraObject
static HashMap outputStreams = new HashMap(4)
 
static boolean amIroot
 

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 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: