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

List of all members.

Public Member Functions

 MultiVector (VectorSpace vectorSpace)
 MultiVector (VectorSpace vectorSpace, double[][] values)
void putScalar (double scalar)
void putRandom (RandomNumberGenerator random)
double[] maxValue ()
double[] minValue ()
double[] meanValue ()
void scale (double scalar)
double[] dot (MultiVector otherMultiVector)
double[] norm1 ()
double[] norm2 ()
double[] normInf ()
void Reciprocal ()
void abs ()
VectorSpace getVectorSpace ()
double[][] getValues ()
void update (double scalarA, MultiVector A, double scalarThis)
void update (double scalarA, MultiVector A, double scalarB, MultiVector B, double scalarThis)
void printOutAllVnodes (String iostream)
void printOut (String iostream)
void printOut (String iostream, boolean all)
int getNumCols ()
int getNumRows ()
void copyAndPermute (DistObject distObjectSource, int numSameGids, int[] permuteToLids, int[] permuteFromLids, int combineMode)
Serializable[] packAndPrepare (DistObject distObjectSource, int[] exportGids, int[] exportLids)
int[][] unpackAndCombine (Serializable[] importData, int combineMode)
void writeExternal (ObjectOutput out) throws java.io.IOException
void readExternal (ObjectInput in) throws java.io.IOException, ClassNotFoundException
Object clone ()
boolean equals (Object obj)
void setBlas (Blas blas)
Blas getBlas ()

Static Public Member Functions

static MultiVector readFromFile (String fileName, Comm comm)
static void writeToFile (String fileName, MultiVector multiVector)

Package Attributes

VectorSpace vectorSpace
double[][] values

Detailed Description

Author:
Jason Cross

Member Function Documentation

void Jpetra::MultiVector::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::MultiVector::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::MultiVector::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.


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