Epetra_VbrMatrix Class Reference

Epetra_VbrMatrix: A class for the construction and use of real-valued double-precision variable block-row sparse matrices. More...

#include <Epetra_VbrMatrix.h>

Inheritance diagram for Epetra_VbrMatrix:

Inheritance graph
[legend]
List of all members.

Constructors/Destructor

 Epetra_VbrMatrix (Epetra_DataAccess CV, const Epetra_BlockMap &RowMap, int *NumBlockEntriesPerRow)
 Epetra_VbrMatrix constuctor with variable number of indices per row.
 Epetra_VbrMatrix (Epetra_DataAccess CV, const Epetra_BlockMap &RowMap, int NumBlockEntriesPerRow)
 Epetra_VbrMatrix constuctor with fixed number of indices per row.
 Epetra_VbrMatrix (Epetra_DataAccess CV, const Epetra_BlockMap &RowMap, const Epetra_BlockMap &ColMap, int *NumBlockEntriesPerRow)
 Epetra_VbrMatrix constuctor with variable number of indices per row.
 Epetra_VbrMatrix (Epetra_DataAccess CV, const Epetra_BlockMap &RowMap, const Epetra_BlockMap &ColMap, int NumBlockEntriesPerRow)
 Epetra_VbrMatrix constuctor with fixed number of indices per row.
 Epetra_VbrMatrix (Epetra_DataAccess CV, const Epetra_CrsGraph &Graph)
 Construct a matrix using an existing Epetra_CrsGraph object.
 Epetra_VbrMatrix (const Epetra_VbrMatrix &Matrix)
 Copy constructor.
virtual ~Epetra_VbrMatrix ()
 Epetra_VbrMatrix Destructor.

Insertion/Replace/SumInto methods

Epetra_VbrMatrixoperator= (const Epetra_VbrMatrix &src)
int PutScalar (double ScalarConstant)
 Initialize all values in graph of the matrix with constant value.
int Scale (double ScalarConstant)
 Multiply all values in the matrix by a constant value (in place: A <- ScalarConstant * A).
int BeginInsertGlobalValues (int BlockRow, int NumBlockEntries, int *BlockIndices)
 Initiate insertion of a list of elements in a given global row of the matrix, values are inserted via SubmitEntry().
int BeginInsertMyValues (int BlockRow, int NumBlockEntries, int *BlockIndices)
 Initiate insertion of a list of elements in a given local row of the matrix, values are inserted via SubmitEntry().
int BeginReplaceGlobalValues (int BlockRow, int NumBlockEntries, int *BlockIndices)
 Initiate replacement of current values with this list of entries for a given global row of the matrix, values are replaced via SubmitEntry().
int BeginReplaceMyValues (int BlockRow, int NumBlockEntries, int *BlockIndices)
 Initiate replacement of current values with this list of entries for a given local row of the matrix, values are replaced via SubmitEntry().
int BeginSumIntoGlobalValues (int BlockRow, int NumBlockEntries, int *BlockIndices)
 Initiate summing into current values with this list of entries for a given global row of the matrix, values are replaced via SubmitEntry().
int BeginSumIntoMyValues (int BlockRow, int NumBlockEntries, int *BlockIndices)
 Initiate summing into current values with this list of entries for a given local row of the matrix, values are replaced via SubmitEntry().
int SubmitBlockEntry (double *Values, int LDA, int NumRows, int NumCols)
 Submit a block entry to the indicated block row and column specified in the Begin routine.
int SubmitBlockEntry (Epetra_SerialDenseMatrix &Mat)
 Submit a block entry to the indicated block row and column specified in the Begin routine.
int EndSubmitEntries ()
 Completes processing of all data passed in for the current block row.
int ReplaceDiagonalValues (const Epetra_Vector &Diagonal)
 Replaces diagonal values of the with those in the user-provided vector.
int FillComplete ()
 Signal that data entry is complete, perform transformations to local index space.
int FillComplete (const Epetra_BlockMap &DomainMap, const Epetra_BlockMap &RangeMap)
 Signal that data entry is complete, perform transformations to local index space.
bool Filled () const
 If FillComplete() has been called, this query returns true, otherwise it returns false.

Extraction methods

int ExtractGlobalBlockRowPointers (int BlockRow, int MaxNumBlockEntries, int &RowDim, int &NumBlockEntries, int *BlockIndices, Epetra_SerialDenseMatrix **&Values) const
 Copy the block indices into user-provided array, set pointers for rest of data for specified global block row.
int ExtractMyBlockRowPointers (int BlockRow, int MaxNumBlockEntries, int &RowDim, int &NumBlockEntries, int *BlockIndices, Epetra_SerialDenseMatrix **&Values) const
 Copy the block indices into user-provided array, set pointers for rest of data for specified local block row.
int BeginExtractGlobalBlockRowCopy (int BlockRow, int MaxNumBlockEntries, int &RowDim, int &NumBlockEntries, int *BlockIndices, int *ColDims) const
 Initiates a copy of the specified global row in user-provided arrays.
int BeginExtractMyBlockRowCopy (int BlockRow, int MaxNumBlockEntries, int &RowDim, int &NumBlockEntries, int *BlockIndices, int *ColDims) const
 Initiates a copy of the specified local row in user-provided arrays.
int ExtractEntryCopy (int SizeOfValues, double *Values, int LDA, bool SumInto) const
 Extract a copy of an entry from the block row specified by one of the BeginExtract routines.
int BeginExtractGlobalBlockRowView (int BlockRow, int &RowDim, int &NumBlockEntries, int *&BlockIndices) const
 Initiates a view of the specified global row, only works if matrix indices are in global mode.
int BeginExtractMyBlockRowView (int BlockRow, int &RowDim, int &NumBlockEntries, int *&BlockIndices) const
 Initiates a view of the specified local row, only works if matrix indices are in local mode.
int ExtractEntryView (Epetra_SerialDenseMatrix *&entry) const
 Returns a pointer to the current block entry.
int ExtractGlobalBlockRowView (int BlockRow, int &RowDim, int &NumBlockEntries, int *&BlockIndices, Epetra_SerialDenseMatrix **&Values) const
 Initiates a view of the specified global row, only works if matrix indices are in global mode.
int ExtractMyBlockRowView (int BlockRow, int &RowDim, int &NumBlockEntries, int *&BlockIndices, Epetra_SerialDenseMatrix **&Values) const
 Initiates a view of the specified local row, only works if matrix indices are in local mode.
int ExtractDiagonalCopy (Epetra_Vector &Diagonal) const
 Returns a copy of the main diagonal in a user-provided vector.
int BeginExtractBlockDiagonalCopy (int MaxNumBlockDiagonalEntries, int &NumBlockDiagonalEntries, int *RowColDims) const
 Initiates a copy of the block diagonal entries to user-provided arrays.
int ExtractBlockDiagonalEntryCopy (int SizeOfValues, double *Values, int LDA, bool SumInto) const
 Extract a copy of a block diagonal entry from the matrix.
int BeginExtractBlockDiagonalView (int &NumBlockDiagonalEntries, int *&RowColDims) const
 Initiates a view of the block diagonal entries.
int ExtractBlockDiagonalEntryView (double *&Values, int &LDA) const
 Extract a view of a block diagonal entry from the matrix.

Computational methods

int Multiply1 (bool TransA, const Epetra_Vector &x, Epetra_Vector &y) const
 Returns the result of a Epetra_VbrMatrix multiplied by a Epetra_Vector x in y.
int Multiply (bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Returns the result of a Epetra_VbrMatrix multiplied by a Epetra_MultiVector X in Y.
int Solve (bool Upper, bool Trans, bool UnitDiagonal, const Epetra_Vector &x, Epetra_Vector &y) const
 Returns the result of a solve using the Epetra_VbrMatrix on a Epetra_Vector x in y.
int Solve (bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Returns the result of a Epetra_VbrMatrix multiplied by a Epetra_MultiVector X in Y.
int InvRowSums (Epetra_Vector &x) const
 Computes the sum of absolute values of the rows of the Epetra_VbrMatrix, results returned in x.
int LeftScale (const Epetra_Vector &x)
 Scales the Epetra_VbrMatrix on the left with a Epetra_Vector x.
int InvColSums (Epetra_Vector &x) const
 Computes the sum of absolute values of the columns of the Epetra_VbrMatrix, results returned in x.
int RightScale (const Epetra_Vector &x)
 Scales the Epetra_VbrMatrix on the right with a Epetra_Vector x.

Matrix Properties Query Methods

int OptimizeStorage ()
 Eliminates memory that is used for construction. Make consecutive row index sections contiguous.
bool StorageOptimized () const
 If OptimizeStorage() has been called, this query returns true, otherwise it returns false.
bool IndicesAreGlobal () const
 If matrix indices has not been transformed to local, this query returns true, otherwise it returns false.
bool IndicesAreLocal () const
 If matrix indices has been transformed to local, this query returns true, otherwise it returns false.
bool IndicesAreContiguous () const
 If matrix indices are packed into single array (done in OptimizeStorage()) return true, otherwise false.
bool LowerTriangular () const
 If matrix is lower triangular in local index space, this query returns true, otherwise it returns false.
bool UpperTriangular () const
 If matrix is upper triangular in local index space, this query returns true, otherwise it returns false.
bool NoDiagonal () const
 If matrix has no diagonal entries based on global row/column index comparisons, this query returns true, otherwise it returns false.

Atribute access functions

double NormInf () const
 Returns the infinity norm of the global matrix.
double NormOne () const
 Returns the one norm of the global matrix.
double NormFrobenius () const
 Returns the frobenius norm of the global matrix.
int MaxRowDim () const
 Returns the maximum row dimension of all block entries on this processor.
int MaxColDim () const
 Returns the maximum column dimension of all block entries on this processor.
int GlobalMaxRowDim () const
 Returns the maximum row dimension of all block entries across all processors.
int GlobalMaxColDim () const
 Returns the maximum column dimension of all block entries across all processors.
int NumMyRows () const
 Returns the number of matrix rows owned by the calling processor.
int NumMyCols () const
 Returns the number of matrix columns owned by the calling processor.
int NumMyNonzeros () const
 Returns the number of nonzero entriesowned by the calling processor .
int NumGlobalRows () const
 Returns the number of global matrix rows.
int NumGlobalCols () const
 Returns the number of global matrix columns.
int NumGlobalNonzeros () const
 Returns the number of nonzero entries in the global matrix.
int NumMyBlockRows () const
 Returns the number of Block matrix rows owned by the calling processor.
int NumMyBlockCols () const
 Returns the number of Block matrix columns owned by the calling processor.
int NumMyBlockEntries () const
 Returns the number of nonzero block entries in the calling processor's portion of the matrix.
int NumMyBlockDiagonals () const
 Returns the number of local nonzero block diagonal entries, based on global row/column index comparisons.
int NumMyDiagonals () const
 Returns the number of local nonzero diagonal entries, based on global row/column index comparisons.
int NumGlobalBlockRows () const
 Returns the number of global Block matrix rows.
int NumGlobalBlockCols () const
 Returns the number of global Block matrix columns.
int NumGlobalBlockEntries () const
 Returns the number of nonzero block entries in the global matrix.
int NumGlobalBlockDiagonals () const
 Returns the number of global nonzero block diagonal entries, based on global row/column index comparisions.
int NumGlobalDiagonals () const
 Returns the number of global nonzero diagonal entries, based on global row/column index comparisions.
int NumGlobalBlockEntries (int Row) const
 Returns the current number of nonzero Block entries in specified global row on this processor.
int NumAllocatedGlobalBlockEntries (int Row) const
 Returns the allocated number of nonzero Block entries in specified global row on this processor.
int MaxNumBlockEntries () const
 Returns the maximum number of nonzero entries across all rows on this processor.
int GlobalMaxNumBlockEntries () const
 Returns the maximum number of nonzero entries across all rows on this processor.
int NumMyBlockEntries (int Row) const
 Returns the current number of nonzero Block entries in specified local row on this processor.
int NumAllocatedMyBlockEntries (int Row) const
 Returns the allocated number of nonzero Block entries in specified local row on this processor.
int MaxNumNonzeros () const
 Returns the maximum number of nonzero entries across all block rows on this processor.
int GlobalMaxNumNonzeros () const
 Returns the maximum number of nonzero entries across all block rows on all processors.
int IndexBase () const
 Returns the index base for row and column indices for this graph.
const Epetra_CrsGraphGraph () const
 Returns a pointer to the Epetra_CrsGraph object associated with this matrix.
const Epetra_ImportImporter () const
 Returns the Epetra_Import object that contains the import operations for distributed operations.
const Epetra_ExportExporter () const
 Returns the Epetra_Export object that contains the export operations for distributed operations.
const Epetra_BlockMapDomainMap () const
 Returns the Epetra_BlockMap object associated with the domain of this matrix operator.
const Epetra_BlockMapRangeMap () const
 Returns the Epetra_BlockMap object associated with the range of this matrix operator.
const Epetra_BlockMapRowMap () const
 Returns the RowMap object as an Epetra_BlockMap (the Epetra_Map base class) needed for implementing Epetra_RowMatrix.
const Epetra_BlockMapColMap () const
 Returns the ColMap as an Epetra_BlockMap (the Epetra_Map base class) needed for implementing Epetra_RowMatrix.
const Epetra_CommComm () const
 Returns a pointer to the Epetra_Comm communicator associated with this matrix.

Local/Global ID methods

int LRID (int GRID_in) const
 Returns the local row index for given global row index, returns -1 if no local row for this global row.
int GRID (int LRID_in) const
 Returns the global row index for give local row index, returns IndexBase-1 if we don't have this local row.
int LCID (int GCID_in) const
 Returns the local column index for given global column index, returns -1 if no local column for this global column.
int GCID (int LCID_in) const
 Returns the global column index for give local column index, returns IndexBase-1 if we don't have this local column.
bool MyGRID (int GRID_in) const
 Returns true if the GRID passed in belongs to the calling processor in this map, otherwise returns false.
bool MyLRID (int LRID_in) const
 Returns true if the LRID passed in belongs to the calling processor in this map, otherwise returns false.
bool MyGCID (int GCID_in) const
 Returns true if the GCID passed in belongs to the calling processor in this map, otherwise returns false.
bool MyLCID (int LCID_in) const
 Returns true if the LRID passed in belongs to the calling processor in this map, otherwise returns false.
bool MyGlobalBlockRow (int GID) const
 Returns true of GID is owned by the calling processor, otherwise it returns false.

I/O Methods

virtual void Print (ostream &os) const
 Print method.

Additional methods required to support the Epetra_Operator interface

const char * Label () const
 Returns a character string describing the operator.
int SetUseTranspose (bool UseTranspose_in)
 If set true, transpose of this operator will be applied.
int Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Returns the result of a Epetra_Operator applied to a Epetra_MultiVector X in Y.
int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 Returns the result of a Epetra_Operator inverse applied to an Epetra_MultiVector X in Y.
bool HasNormInf () const
 Returns true because this class can compute an Inf-norm.
bool UseTranspose () const
 Returns the current UseTranspose setting.
const Epetra_MapOperatorDomainMap () const
 Returns the Epetra_Map object associated with the domain of this matrix operator.
const Epetra_MapOperatorRangeMap () const
 Returns the Epetra_Map object associated with the range of this matrix operator.

Additional methods required to implement RowMatrix interface

int ExtractGlobalRowCopy (int GlobalRow, int Length, int &NumEntries, double *Values, int *Indices) const
 Returns a copy of the specified global row in user-provided arrays.
int ExtractMyRowCopy (int MyRow, int Length, int &NumEntries, double *Values, int *Indices) const
 Returns a copy of the specified local row in user-provided arrays.
int NumMyRowEntries (int MyRow, int &NumEntries) const
 Return the current number of values stored for the specified local row.
int MaxNumEntries () const
 Returns the maximum of NumMyRowEntries() over all rows.
const Epetra_MapRowMatrixRowMap () const
 Returns the EpetraMap object associated with the rows of this matrix.
const Epetra_MapRowMatrixColMap () const
 Returns the Epetra_Map object associated with columns of this matrix.
const Epetra_ImportRowMatrixImporter () const
 Returns the Epetra_Import object that contains the import operations for distributed operations.

Deprecated methods: These methods still work, but will be removed in a future version

const Epetra_BlockMapBlockImportMap () const
 Use BlockColMap() instead.
int TransformToLocal ()
 Use FillComplete() instead.
int TransformToLocal (const Epetra_BlockMap *DomainMap, const Epetra_BlockMap *RangeMap)
 Use FillComplete(const Epetra_BlockMap& DomainMap, const Epetra_BlockMap& RangeMap) instead.

Protected Member Functions

void DeleteMemory ()
bool Allocated () const
int SetAllocated (bool Flag)
Epetra_SerialDenseMatrix *** Values () const
int DoMultiply (bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
int DoSolve (bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
void InitializeDefaults ()
int Allocate ()
int BeginInsertValues (int BlockRow, int NumBlockEntries, int *BlockIndices, bool IndicesAreLocal)
int BeginReplaceValues (int BlockRow, int NumBlockEntries, int *BlockIndices, bool IndicesAreLocal)
int BeginSumIntoValues (int BlockRow, int NumBlockEntries, int *BlockIndices, bool IndicesAreLocal)
int SetupForSubmits (int BlockRow, int NumBlockEntries, int *BlockIndices, bool IndicesAreLocal, Epetra_CombineMode SubmitMode)
int EndReplaceSumIntoValues ()
int EndInsertValues ()
int CopyMat (double *A, int LDA, int NumRows, int NumCols, double *B, int LDB, bool SumInto) const
int BeginExtractBlockRowCopy (int BlockRow, int MaxNumBlockEntries, int &RowDim, int &NumBlockEntries, int *BlockIndices, int *ColDims, bool IndicesAreLocal) const
int SetupForExtracts (int BlockRow, int &RowDim, int NumBlockEntries, bool ExtractView, bool IndicesAreLocal) const
int ExtractBlockDimsCopy (int NumBlockEntries, int *ColDims) const
int ExtractBlockRowPointers (int BlockRow, int MaxNumBlockEntries, int &RowDim, int &NumBlockEntries, int *BlockIndices, Epetra_SerialDenseMatrix **&Values, bool IndicesAreLocal) const
int BeginExtractBlockRowView (int BlockRow, int &RowDim, int &NumBlockEntries, int *&BlockIndices, bool IndicesAreLocal) const
int CopyMatDiag (double *A, int LDA, int NumRows, int NumCols, double *Diagonal) const
int ReplaceMatDiag (double *A, int LDA, int NumRows, int NumCols, double *Diagonal)
void BlockRowMultiply (bool TransA, int RowDim, int NumEntries, int *BlockIndices, int RowOff, int *FirstPointInElementList, int *ElementSizeList, double Alpha, Epetra_SerialDenseMatrix **As, double **X, double Beta, double **Y, int NumVectors) const
void BlockRowMultiply (bool TransA, int RowDim, int NumEntries, int *BlockIndices, int RowOff, int *FirstPointInElementList, int *ElementSizeList, Epetra_SerialDenseMatrix **As, double **X, double **Y, int NumVectors) const
void FastBlockRowMultiply (bool TransA, int RowDim, int NumEntries, int *BlockIndices, int RowOff, int *FirstPointInElementList, int *ElementSizeList, Epetra_SerialDenseMatrix **As, double **X, double **Y, int NumVectors) const
int InverseSums (bool DoRows, Epetra_Vector &x) const
int Scale (bool DoRows, const Epetra_Vector &x)
void BlockRowNormInf (int RowDim, int NumEntries, Epetra_SerialDenseMatrix **As, double *Y) const
void BlockRowNormOne (int RowDim, int NumEntries, int *BlockRowIndices, Epetra_SerialDenseMatrix **As, int *ColFirstPointInElementList, double *x) const
void SetStaticGraph (bool Flag)
int CheckSizes (const Epetra_SrcDistObject &A)
 Allows the source and target (this) objects to be compared for compatibility, return nonzero if not.
int CopyAndPermute (const Epetra_SrcDistObject &Source, int NumSameIDs, int NumPermuteIDs, int *PermuteToLIDs, int *PermuteFromLIDs, const Epetra_OffsetIndex *Indexor)
 Perform ID copies and permutations that are on processor.
int PackAndPrepare (const Epetra_SrcDistObject &Source, int NumExportIDs, int *ExportLIDs, int &LenExports, char *&Exports, int &SizeOfPacket, int *Sizes, bool &VarSizes, Epetra_Distributor &Distor)
 Perform any packing or preparation required for call to DoTransfer().
int UnpackAndCombine (const Epetra_SrcDistObject &Source, int NumImportIDs, int *ImportLIDs, int LenImports, char *Imports, int &SizeOfPacket, Epetra_Distributor &Distor, Epetra_CombineMode CombineMode, const Epetra_OffsetIndex *Indexor)
 Perform any unpacking and combining after call to DoTransfer().
int SortEntries ()
 Sort column entries, row-by-row, in ascending order.
bool Sorted () const
 If SortEntries() has been called, this query returns true, otherwise it returns false.
int MergeRedundantEntries ()
 Add entries that have the same column index. Remove redundant entries from list.
bool NoRedundancies () const
 If MergeRedundantEntries() has been called, this query returns true, otherwise it returns false.
bool StaticGraph () const
int GeneratePointObjects () const
int BlockMap2PointMap (const Epetra_BlockMap &BlockMap, Epetra_Map *&PointMap) const
int UpdateOperatorXY (const Epetra_MultiVector &X, const Epetra_MultiVector &Y) const

Protected Attributes

Epetra_CrsGraphGraph_
bool Allocated_
bool StaticGraph_
bool UseTranspose_
bool constructedWithFilledGraph_
bool matrixFillCompleteCalled_
bool StorageOptimized_
int NumMyBlockRows_
Epetra_DataAccess CV_
int * NumBlockEntriesPerRow_
int * NumAllocatedBlockEntriesPerRow_
int ** Indices_
int * ElementSizeList_
int * FirstPointInElementList_
Epetra_SerialDenseMatrix *** Entries_
double * All_Values_Orig_
double * All_Values_
double NormInf_
double NormOne_
double NormFrob_
Epetra_MultiVectorImportVector_
Epetra_MultiVectorExportVector_
int * TempRowDims_
Epetra_SerialDenseMatrix ** TempEntries_
int LenTemps_
int CurBlockRow_
int CurNumBlockEntries_
int * CurBlockIndices_
int CurEntry_
bool CurIndicesAreLocal_
Epetra_CombineMode CurSubmitMode_
int CurExtractBlockRow_
int CurExtractEntry_
int CurExtractNumBlockEntries_
bool CurExtractIndicesAreLocal_
bool CurExtractView_
int CurRowDim_
int CurBlockDiag_
Epetra_MapRowMatrixRowMap_
Epetra_MapRowMatrixColMap_
Epetra_ImportRowMatrixImporter_
Epetra_MapOperatorDomainMap_
Epetra_MapOperatorRangeMap_
Epetra_MultiVectorOperatorX_
Epetra_MultiVectorOperatorY_
bool HavePointObjects_
bool squareFillCompleteCalled_

Detailed Description

Epetra_VbrMatrix: A class for the construction and use of real-valued double-precision variable block-row sparse matrices.

The Epetra_VbrMatrix class is a sparse variable block row matrix object. This matrix can be used in a parallel setting, with data distribution described by Epetra_Map attributes. The structure or graph of the matrix is defined by an Epetra_CrsGraph attribute.

In addition to coefficient access, the primary operations provided by Epetra_VbrMatrix are matrix times vector and matrix times multi-vector multiplication.

Creating and filling Epetra_VbrMatrix objects

Constructing Epetra_VbrMatrix objects is a multi-step process. The basic steps are as follows:

  1. Create Epetra_VbrMatrix instance via one of the constructors:
  2. Input coefficient values (more detail on this below).
  3. Complete construction by calling FillComplete.

Note that even after FillComplete() has been called, it is possible to update existing matrix entries but it is not possible to create new entries.

Epetra_Map attributes

Epetra_VbrMatrix objects have four Epetra_Map attributes, which are held by the Epetra_CrsGraph attribute.

The Epetra_Map attributes can be obtained via these accessor methods:

It is important to note that while the row-map and the range-map are often the same, the column-map and the domain-map are almost never the same. The set of entries in a distributed column-map almost always form overlapping sets, with entries being associated with more than one processor. A domain-map, on the other hand, must be a 1-to-1 map, with entries being associated with only a single processor.

Local versus Global Indices

Epetra_VbrMatrix has query functions IndicesAreLocal() and IndicesAreGlobal(), which are used to determine whether the underlying Epetra_CrsGraph attribute's column-indices have been transformed into a local index space or not. (This transformation occurs when the method Epetra_CrsGraph::FillComplete() is called, which happens when the method Epetra_VbrMatrix::FillComplete() is called.) The state of the indices in the graph determines the behavior of many Epetra_VbrMatrix methods. If an Epetra_VbrMatrix instance is constructed using one of the constructors that does not accept a pre-existing Epetra_CrsGraph object, then an Epetra_CrsGraph attribute is created internally and its indices remain untransformed (IndicesAreGlobal()==true) until Epetra_VbrMatrix::FillComplete() is called. The query function Epetra_VbrMatrix::Filled() returns true if Epetra_VbrMatrix::FillComplete() has been called.

Inputting coefficient values

The process for inputting block-entry coefficients is as follows:

  1. Indicate that values for a specified row are about to be provided by calling one of these methods which specify a block-row and a list of block-column-indices:
  2. Loop over the list of block-column-indices and pass each block-entry to the matrix using the method SubmitBlockEntry().
  3. Complete the process for the specified block-row by calling the method EndSubmitEntries().

Note that the 'GlobalValues' methods have the precondition that IndicesAreGlobal() must be true, and the 'MyValues' methods have the precondition that IndicesAreLocal() must be true. Furthermore, the 'SumInto' and 'Replace' methods may only be used to update matrix entries which already exist, and the 'Insert' methods may only be used if IndicesAreContiguous() is false.

Counting Floating Point Operations

Each Epetra_VbrMatrix object keeps track of the number of serial floating point operations performed using the specified object as the this argument to the function. The Flops() function returns this number as a double precision number. Using this information, in conjunction with the Epetra_Time class, one can get accurate parallel performance numbers. The ResetFlops() function resets the floating point counter.

Definition at line 147 of file Epetra_VbrMatrix.h.


Constructor & Destructor Documentation

Epetra_VbrMatrix::Epetra_VbrMatrix ( Epetra_DataAccess  CV,
const Epetra_BlockMap RowMap,
int *  NumBlockEntriesPerRow 
)

Epetra_VbrMatrix constuctor with variable number of indices per row.

Creates a Epetra_VbrMatrix object and allocates storage.

Parameters:
In CV - A Epetra_DataAccess enumerated type set to Copy or View.
In RowMap - A Epetra_BlockMap listing the block rows that this processor will contribute to.
In NumBlockEntriesPerRow - An integer array of length NumRows such that NumBlockEntriesPerRow[i] indicates the (approximate) number of Block entries in the ith row.

Definition at line 41 of file Epetra_VbrMatrix.cpp.

Epetra_VbrMatrix::Epetra_VbrMatrix ( Epetra_DataAccess  CV,
const Epetra_BlockMap RowMap,
int  NumBlockEntriesPerRow 
)

Epetra_VbrMatrix constuctor with fixed number of indices per row.

Creates a Epetra_VbrMatrix object and allocates storage.

Parameters:
In CV - A Epetra_DataAccess enumerated type set to Copy or View.
In RowMap - An Epetra_BlockMap listing the block rows that this processor will contribute to.
In NumBlockEntriesPerRow - An integer that indicates the (approximate) number of Block entries in the each Block row. Note that it is possible to use 0 for this value and let fill occur during the insertion phase.

Definition at line 64 of file Epetra_VbrMatrix.cpp.

Epetra_VbrMatrix::Epetra_VbrMatrix ( Epetra_DataAccess  CV,
const Epetra_BlockMap RowMap,
const Epetra_BlockMap ColMap,
int *  NumBlockEntriesPerRow 
)

Epetra_VbrMatrix constuctor with variable number of indices per row.

Creates a Epetra_VbrMatrix object and allocates storage.

Parameters:
In CV - A Epetra_DataAccess enumerated type set to Copy or View.
In RowMap - A Epetra_BlockMap listing the block rows that this processor will contribute to.
In ColMap - A Epetra_BlockMap.
In NumBlockEntriesPerRow - An integer array of length NumRows such that NumBlockEntriesPerRow[i] indicates the (approximate) number of Block entries in the ith row.

Definition at line 83 of file Epetra_VbrMatrix.cpp.

Epetra_VbrMatrix::Epetra_VbrMatrix ( Epetra_DataAccess  CV,
const Epetra_BlockMap RowMap,
const Epetra_BlockMap ColMap,
int  NumBlockEntriesPerRow 
)

Epetra_VbrMatrix constuctor with fixed number of indices per row.

Creates a Epetra_VbrMatrix object and allocates storage.

Parameters:
In CV - A Epetra_DataAccess enumerated type set to Copy or View.
In RowMap - A Epetra_BlockMap listing the block rows that this processor will contribute to.
In ColMap - An Epetra_BlockMap listing the block columns that this processor will contribute to.
In NumBlockEntriesPerRow - An integer that indicates the (approximate) number of Block entries in the each Block row. Note that it is possible to use 0 for this value and let fill occur during the insertion phase.

Definition at line 104 of file Epetra_VbrMatrix.cpp.

Epetra_VbrMatrix::Epetra_VbrMatrix ( Epetra_DataAccess  CV,
const Epetra_CrsGraph Graph 
)

Construct a matrix using an existing Epetra_CrsGraph object.

Allows the nonzero structure from another matrix, or a structure that was constructed independently, to be used for this matrix.

Parameters:
In CV - A Epetra_DataAccess enumerated type set to Copy or View.
In Graph - A Epetra_CrsGraph object, extracted from another Epetra matrix object or constructed directly from using the Epetra_CrsGraph constructors.

Definition at line 124 of file Epetra_VbrMatrix.cpp.

Epetra_VbrMatrix::Epetra_VbrMatrix ( const Epetra_VbrMatrix Matrix  ) 

Copy constructor.

Definition at line 144 of file Epetra_VbrMatrix.cpp.

Epetra_VbrMatrix::~Epetra_VbrMatrix (  )  [virtual]

Epetra_VbrMatrix Destructor.

Definition at line 348 of file Epetra_VbrMatrix.cpp.


Member Function Documentation

Epetra_VbrMatrix & Epetra_VbrMatrix::operator= ( const Epetra_VbrMatrix src  ) 

Definition at line 165 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::PutScalar ( double  ScalarConstant  ) 

Initialize all values in graph of the matrix with constant value.

Parameters:
In ScalarConstant - Value to use.
Returns:
Integer error code, set to 0 if successful.

Reimplemented in Epetra_FEVbrMatrix.

Definition at line 433 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::Scale ( double  ScalarConstant  ) 

Multiply all values in the matrix by a constant value (in place: A <- ScalarConstant * A).

Parameters:
In ScalarConstant - Value to use.
Returns:
Integer error code, set to 0 if successful.

Definition at line 457 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginInsertGlobalValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices 
)

Initiate insertion of a list of elements in a given global row of the matrix, values are inserted via SubmitEntry().

Parameters:
In BlockRow - Block Row number (in global coordinates) to put elements.
In NumBlockEntries - Number of entries.
In Indices - Global column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful.

Reimplemented in Epetra_FEVbrMatrix.

Definition at line 478 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginInsertMyValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices 
)

Initiate insertion of a list of elements in a given local row of the matrix, values are inserted via SubmitEntry().

Parameters:
In BlockRow - Block Row number (in local coordinates) to put elements.
In NumBlockEntries - Number of entries.
In Indices - Local column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful.

Definition at line 490 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginReplaceGlobalValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices 
)

Initiate replacement of current values with this list of entries for a given global row of the matrix, values are replaced via SubmitEntry().

Parameters:
In Row - Block Row number (in global coordinates) to put elements.
In NumBlockEntries - Number of entries.
In Indices - Global column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful.

Reimplemented in Epetra_FEVbrMatrix.

Definition at line 524 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginReplaceMyValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices 
)

Initiate replacement of current values with this list of entries for a given local row of the matrix, values are replaced via SubmitEntry().

Parameters:
In Row - Block Row number (in local coordinates) to put elements.
In NumBlockEntries - Number of entries.
In Indices - Local column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful.

Definition at line 533 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginSumIntoGlobalValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices 
)

Initiate summing into current values with this list of entries for a given global row of the matrix, values are replaced via SubmitEntry().

Parameters:
In Row - Block Row number (in global coordinates) to put elements.
In NumBlockEntries - Number of entries.
In Indices - Global column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful.

Reimplemented in Epetra_FEVbrMatrix.

Definition at line 556 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginSumIntoMyValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices 
)

Initiate summing into current values with this list of entries for a given local row of the matrix, values are replaced via SubmitEntry().

Parameters:
In Row - Block Row number (in local coordinates) to put elements.
In NumBlockEntries - Number of entries.
In Indices - Local column indices corresponding to values.
Returns:
Integer error code, set to 0 if successful.

Definition at line 565 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::SubmitBlockEntry ( double *  Values,
int  LDA,
int  NumRows,
int  NumCols 
)

Submit a block entry to the indicated block row and column specified in the Begin routine.

Reimplemented in Epetra_FEVbrMatrix.

Definition at line 610 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::SubmitBlockEntry ( Epetra_SerialDenseMatrix Mat  ) 

Submit a block entry to the indicated block row and column specified in the Begin routine.

Definition at line 627 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::EndSubmitEntries (  ) 

Completes processing of all data passed in for the current block row.

This function completes the processing of all block entries submitted via SubmitBlockEntry(). It also checks to make sure that SubmitBlockEntry was called the correct number of times as specified by the Begin routine that initiated the entry process.

Reimplemented in Epetra_FEVbrMatrix.

Definition at line 633 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ReplaceDiagonalValues ( const Epetra_Vector Diagonal  ) 

Replaces diagonal values of the with those in the user-provided vector.

This routine is meant to allow replacement of { existing} diagonal values. If a diagonal value does not exist for a given row, the corresponding value in the input Epetra_Vector will be ignored and the return code will be set to 1.

The Epetra_Map associated with the input Epetra_Vector must be compatible with the RowMap of the matrix.

Parameters:
Diagonal (In) - New values to be placed in the main diagonal.
Returns:
Integer error code, set to 0 if successful, 1 of one or more diagonal entries not present in matrix.

Definition at line 1331 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::FillComplete (  ) 

Signal that data entry is complete, perform transformations to local index space.

Definition at line 799 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::FillComplete ( const Epetra_BlockMap DomainMap,
const Epetra_BlockMap RangeMap 
)

Signal that data entry is complete, perform transformations to local index space.

Definition at line 806 of file Epetra_VbrMatrix.cpp.

bool Epetra_VbrMatrix::Filled (  )  const [inline, virtual]

If FillComplete() has been called, this query returns true, otherwise it returns false.

Implements Epetra_RowMatrix.

Definition at line 436 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::ExtractGlobalBlockRowPointers ( int  BlockRow,
int  MaxNumBlockEntries,
int &  RowDim,
int &  NumBlockEntries,
int *  BlockIndices,
Epetra_SerialDenseMatrix **&  Values 
) const

Copy the block indices into user-provided array, set pointers for rest of data for specified global block row.

This function provides the lightest weight approach to accessing a global block row when the matrix may be be stored in local or global index space. In other words, this function will always work because the block indices are returned in user-provided space. All other array arguments are independent of whether or not indices are local or global. Other than the BlockIndices array, all other array argument are returned as pointers to internal data.

Parameters:
In BlockRow - Global block row to extract.
In MaxNumBlockEntries - Length of user-provided BlockIndices array.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries actually extracted.
Out BlockIndices - Extracted global column indices for the corresponding block entries.
Out Values - Pointer to list of pointers to block entries. Note that the actual values are not copied.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1077 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractMyBlockRowPointers ( int  BlockRow,
int  MaxNumBlockEntries,
int &  RowDim,
int &  NumBlockEntries,
int *  BlockIndices,
Epetra_SerialDenseMatrix **&  Values 
) const

Copy the block indices into user-provided array, set pointers for rest of data for specified local block row.

This function provides the lightest weight approach to accessing a local block row when the matrix may be be stored in local or global index space. In other words, this function will always work because the block indices are returned in user-provided space. All other array arguments are independent of whether or not indices are local or global. Other than the BlockIndices array, all other array argument are returned as pointers to internal data.

Parameters:
In BlockRow - Local block row to extract.
In MaxNumBlockEntries - Length of user-provided BlockIndices array.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries actually extracted.
Out BlockIndices - Extracted local column indices for the corresponding block entries.
Out Values - Pointer to list of pointers to block entries. Note that the actual values are not copied.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1089 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractGlobalBlockRowCopy ( int  BlockRow,
int  MaxNumBlockEntries,
int &  RowDim,
int &  NumBlockEntries,
int *  BlockIndices,
int *  ColDims 
) const

Initiates a copy of the specified global row in user-provided arrays.

Parameters:
In BlockRow - Global block row to extract.
In MaxNumBlockEntries - Length of user-provided BlockIndices, ColDims, and LDAs arrays.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries actually extracted.
Out BlockIndices - Extracted global column indices for the corresponding block entries.
Out ColDim - List of column dimensions for each corresponding block entry that will be extracted.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1128 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractMyBlockRowCopy ( int  BlockRow,
int  MaxNumBlockEntries,
int &  RowDim,
int &  NumBlockEntries,
int *  BlockIndices,
int *  ColDims 
) const

Initiates a copy of the specified local row in user-provided arrays.

Parameters:
In BlockRow - Local block row to extract.
In MaxNumBlockEntries - Length of user-provided BlockIndices, ColDims, and LDAs arrays.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries actually extracted.
Out BlockIndices - Extracted local column indices for the corresponding block entries.
Out ColDim - List of column dimensions for each corresponding block entry that will be extracted.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1139 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractEntryCopy ( int  SizeOfValues,
double *  Values,
int  LDA,
bool  SumInto 
) const

Extract a copy of an entry from the block row specified by one of the BeginExtract routines.

Once BeginExtractGlobalBlockRowCopy() or BeginExtractMyBlockRowCopy() is called, you can extract the block entries of specified block row one-entry-at-a-time. The entries will be extracted in an order corresponding to the BlockIndices list that was returned by the BeginExtract routine.

Parameters:
In SizeOfValues - Amount of memory associated with Values. This must be at least as big as LDA*NumCol, where NumCol is the column dimension of the block entry being copied
InOut Values - Starting location where the block entry will be copied.
In LDA - Specifies the stride that will be used when copying columns into Values.
In SumInto - If set to true, the block entry values will be summed into existing values.

Definition at line 1195 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractGlobalBlockRowView ( int  BlockRow,
int &  RowDim,
int &  NumBlockEntries,
int *&  BlockIndices 
) const

Initiates a view of the specified global row, only works if matrix indices are in global mode.

Parameters:
In BlockRow - Global block row to view.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries to be viewed.
Out BlockIndices - Pointer to global column indices for the corresponding block entries.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1231 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractMyBlockRowView ( int  BlockRow,
int &  RowDim,
int &  NumBlockEntries,
int *&  BlockIndices 
) const

Initiates a view of the specified local row, only works if matrix indices are in local mode.

Parameters:
In BlockRow - Local block row to view.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries to be viewed.
Out BlockIndices - Pointer to local column indices for the corresponding block entries.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1243 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractEntryView ( Epetra_SerialDenseMatrix *&  entry  )  const

Returns a pointer to the current block entry.

After a call to BeginExtractGlobal() or BlockRowViewBeginExtractMyBlockRowView(), ExtractEntryView() can be called up to NumBlockEntries times to get each block entry in the specified block row.

Parameters:
InOut entry - A pointer that will be set to the current block entry.

Definition at line 1273 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractGlobalBlockRowView ( int  BlockRow,
int &  RowDim,
int &  NumBlockEntries,
int *&  BlockIndices,
Epetra_SerialDenseMatrix **&  Values 
) const

Initiates a view of the specified global row, only works if matrix indices are in global mode.

Parameters:
In BlockRow - Global block row to view.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries to be viewed.
Out BlockIndices - Pointer to global column indices for the corresponding block entries.
Out Values - Pointer to an array of pointers to the block entries in the specified block row.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1282 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractMyBlockRowView ( int  BlockRow,
int &  RowDim,
int &  NumBlockEntries,
int *&  BlockIndices,
Epetra_SerialDenseMatrix **&  Values 
) const

Initiates a view of the specified local row, only works if matrix indices are in local mode.

Parameters:
In BlockRow - Local block row to view.
Out RowDim - Number of equations in the requested block row.
Out NumBlockEntries - Number of nonzero entries to be viewed.
Out BlockIndices - Pointer to local column indices for the corresponding block entries.
Out Values - Pointer to an array of pointers to the block entries in the specified block row.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1296 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractDiagonalCopy ( Epetra_Vector Diagonal  )  const [virtual]

Returns a copy of the main diagonal in a user-provided vector.

Parameters:
Out Diagonal - Extracted main diagonal.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 1309 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractBlockDiagonalCopy ( int  MaxNumBlockDiagonalEntries,
int &  NumBlockDiagonalEntries,
int *  RowColDims 
) const

Initiates a copy of the block diagonal entries to user-provided arrays.

Parameters:
In MaxNumBlockDiagonalEntries - Length of user-provided RowColDims array.
Out NumBlockDiagonalEntries - Number of block diagonal entries that can actually be extracted.
Out RowColDim - List of row and column dimension for corresponding block diagonal entries.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1361 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractBlockDiagonalEntryCopy ( int  SizeOfValues,
double *  Values,
int  LDA,
bool  SumInto 
) const

Extract a copy of a block diagonal entry from the matrix.

Once BeginExtractBlockDiagonalCopy() is called, you can extract the block diagonal entries one-entry-at-a-time. The entries will be extracted in ascending order.

Parameters:
In SizeOfValues - Amount of memory associated with Values. This must be at least as big as LDA*NumCol, where NumCol is the column dimension of the block entry being copied
InOut Values - Starting location where the block entry will be copied.
In LDA - Specifies the stride that will be used when copying columns into Values.
In SumInto - If set to true, the block entry values will be summed into existing values.

Definition at line 1372 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractBlockDiagonalView ( int &  NumBlockDiagonalEntries,
int *&  RowColDims 
) const

Initiates a view of the block diagonal entries.

Parameters:
Out NumBlockDiagonalEntries - Number of block diagonal entries that can be viewed.
Out RowColDim - Pointer to list of row and column dimension for corresponding block diagonal entries.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1393 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractBlockDiagonalEntryView ( double *&  Values,
int &  LDA 
) const

Extract a view of a block diagonal entry from the matrix.

Once BeginExtractBlockDiagonalView() is called, you can extract a view of the block diagonal entries one-entry-at-a-time. The views will be extracted in ascending order.

Parameters:
Out Values - Pointer to internal copy of block entry.
Out LDA - Column stride of Values.

Definition at line 1403 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::Multiply1 ( bool  TransA,
const Epetra_Vector x,
Epetra_Vector y 
) const

Returns the result of a Epetra_VbrMatrix multiplied by a Epetra_Vector x in y.

Parameters:
In TransA - If true, multiply by the transpose of matrix, otherwise just use matrix.
In x - A Epetra_Vector to multiply by.
Out y - A Epetra_Vector containing result.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1519 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::Multiply ( bool  TransA,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Returns the result of a Epetra_VbrMatrix multiplied by a Epetra_MultiVector X in Y.

Parameters:
In TransA -If true, multiply by the transpose of matrix, otherwise just use matrix.
In X - A Epetra_MultiVector of dimension NumVectors to multiply with matrix.
Out Y -A Epetra_MultiVector of dimension NumVectorscontaining result.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 3227 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::Solve ( bool  Upper,
bool  Trans,
bool  UnitDiagonal,
const Epetra_Vector x,
Epetra_Vector y 
) const

Returns the result of a solve using the Epetra_VbrMatrix on a Epetra_Vector x in y.

Parameters:
In Upper -If true, solve Ux = y, otherwise solve Lx = y.
In Trans -If true, solve transpose problem.
In UnitDiagonal -If true, assume diagonal is unit (whether it's stored or not).
In x -A Epetra_Vector to solve for.
Out y -A Epetra_Vector containing result.
Returns:
Integer error code, set to 0 if successful.

int Epetra_VbrMatrix::Solve ( bool  Upper,
bool  Trans,
bool  UnitDiagonal,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Returns the result of a Epetra_VbrMatrix multiplied by a Epetra_MultiVector X in Y.

Parameters:
In Upper -If true, solve Ux = y, otherwise solve Lx = y.
In Trans -If true, solve transpose problem.
In UnitDiagonal -If true, assume diagonal is unit (whether it's stored or not).
In X - A Epetra_MultiVector of dimension NumVectors to solve for.
Out Y -A Epetra_MultiVector of dimension NumVectors containing result.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 3241 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::InvRowSums ( Epetra_Vector x  )  const [virtual]

Computes the sum of absolute values of the rows of the Epetra_VbrMatrix, results returned in x.

The vector x will return such that x[i] will contain the inverse of sum of the absolute values of the this matrix will be scaled such that A(i,j) = x(i)*A(i,j) where i denotes the global row number of A and j denotes the global column number of A. Using the resulting vector from this function as input to LeftScale() will make the infinity norm of the resulting matrix exactly 1.

Parameters:
Out x -A Epetra_Vector containing the row sums of the this matrix.
Warning:
It is assumed that the distribution of x is the same as the rows of this.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 2396 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::LeftScale ( const Epetra_Vector x  )  [virtual]

Scales the Epetra_VbrMatrix on the left with a Epetra_Vector x.

The this matrix will be scaled such that A(i,j) = x(i)*A(i,j) where i denotes the row number of A and j denotes the column number of A.

Parameters:
In x -A Epetra_Vector to solve for.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 2530 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::InvColSums ( Epetra_Vector x  )  const [virtual]

Computes the sum of absolute values of the columns of the Epetra_VbrMatrix, results returned in x.

The vector x will return such that x[j] will contain the inverse of sum of the absolute values of the this matrix will be sca such that A(i,j) = x(j)*A(i,j) where i denotes the global row number of A and j denotes the global column number of A. Using the resulting vector from this function as input to RighttScale() will make the one norm of the resulting matrix exactly 1.

Parameters:
Out x -A Epetra_Vector containing the column sums of the this matrix.
Warning:
It is assumed that the distribution of x is the same as the rows of this.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 2405 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::RightScale ( const Epetra_Vector x  )  [virtual]

Scales the Epetra_VbrMatrix on the right with a Epetra_Vector x.

The this matrix will be scaled such that A(i,j) = x(j)*A(i,j) where i denotes the global row number of A and j denotes the global column number of A.

Parameters:
In x -The Epetra_Vector used for scaling this.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 2539 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::OptimizeStorage (  ) 

Eliminates memory that is used for construction. Make consecutive row index sections contiguous.

Definition at line 940 of file Epetra_VbrMatrix.cpp.

bool Epetra_VbrMatrix::StorageOptimized (  )  const [inline]

If OptimizeStorage() has been called, this query returns true, otherwise it returns false.

Definition at line 824 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::IndicesAreGlobal (  )  const [inline]

If matrix indices has not been transformed to local, this query returns true, otherwise it returns false.

Definition at line 827 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::IndicesAreLocal (  )  const [inline]

If matrix indices has been transformed to local, this query returns true, otherwise it returns false.

Definition at line 830 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::IndicesAreContiguous (  )  const [inline]

If matrix indices are packed into single array (done in OptimizeStorage()) return true, otherwise false.

Definition at line 833 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::LowerTriangular (  )  const [inline, virtual]

If matrix is lower triangular in local index space, this query returns true, otherwise it returns false.

Implements Epetra_RowMatrix.

Definition at line 836 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::UpperTriangular (  )  const [inline, virtual]

If matrix is upper triangular in local index space, this query returns true, otherwise it returns false.

Implements Epetra_RowMatrix.

Definition at line 839 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::NoDiagonal (  )  const [inline]

If matrix has no diagonal entries based on global row/column index comparisons, this query returns true, otherwise it returns false.

Definition at line 842 of file Epetra_VbrMatrix.h.

double Epetra_VbrMatrix::NormInf (  )  const [virtual]

Returns the infinity norm of the global matrix.

Implements Epetra_RowMatrix.

Definition at line 2643 of file Epetra_VbrMatrix.cpp.

double Epetra_VbrMatrix::NormOne (  )  const [virtual]

Returns the one norm of the global matrix.

Implements Epetra_RowMatrix.

Definition at line 2702 of file Epetra_VbrMatrix.cpp.

double Epetra_VbrMatrix::NormFrobenius (  )  const

Returns the frobenius norm of the global matrix.

Definition at line 2757 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::MaxRowDim (  )  const [inline]

Returns the maximum row dimension of all block entries on this processor.

Definition at line 872 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::MaxColDim (  )  const [inline]

Returns the maximum column dimension of all block entries on this processor.

Definition at line 875 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::GlobalMaxRowDim (  )  const [inline]

Returns the maximum row dimension of all block entries across all processors.

Definition at line 878 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::GlobalMaxColDim (  )  const [inline]

Returns the maximum column dimension of all block entries across all processors.

Definition at line 881 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyRows (  )  const [inline, virtual]

Returns the number of matrix rows owned by the calling processor.

Implements Epetra_RowMatrix.

Definition at line 884 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyCols (  )  const [inline, virtual]

Returns the number of matrix columns owned by the calling processor.

Implements Epetra_RowMatrix.

Definition at line 886 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyNonzeros (  )  const [inline, virtual]

Returns the number of nonzero entriesowned by the calling processor .

Implements Epetra_RowMatrix.

Definition at line 889 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalRows (  )  const [inline, virtual]

Returns the number of global matrix rows.

Implements Epetra_RowMatrix.

Definition at line 892 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalCols (  )  const [inline, virtual]

Returns the number of global matrix columns.

Implements Epetra_RowMatrix.

Definition at line 895 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalNonzeros (  )  const [inline, virtual]

Returns the number of nonzero entries in the global matrix.

Implements Epetra_RowMatrix.

Definition at line 904 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyBlockRows (  )  const [inline]

Returns the number of Block matrix rows owned by the calling processor.

Definition at line 907 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyBlockCols (  )  const [inline]

Returns the number of Block matrix columns owned by the calling processor.

Definition at line 910 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyBlockEntries (  )  const [inline]

Returns the number of nonzero block entries in the calling processor's portion of the matrix.

Definition at line 913 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyBlockDiagonals (  )  const [inline]

Returns the number of local nonzero block diagonal entries, based on global row/column index comparisons.

Definition at line 916 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyDiagonals (  )  const [inline, virtual]

Returns the number of local nonzero diagonal entries, based on global row/column index comparisons.

Implements Epetra_RowMatrix.

Definition at line 919 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalBlockRows (  )  const [inline]

Returns the number of global Block matrix rows.

Definition at line 922 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalBlockCols (  )  const [inline]

Returns the number of global Block matrix columns.

Definition at line 925 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalBlockEntries (  )  const [inline]

Returns the number of nonzero block entries in the global matrix.

Definition at line 928 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalBlockDiagonals (  )  const [inline]

Returns the number of global nonzero block diagonal entries, based on global row/column index comparisions.

Definition at line 931 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalDiagonals (  )  const [inline, virtual]

Returns the number of global nonzero diagonal entries, based on global row/column index comparisions.

Implements Epetra_RowMatrix.

Definition at line 934 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumGlobalBlockEntries ( int  Row  )  const [inline]

Returns the current number of nonzero Block entries in specified global row on this processor.

Definition at line 937 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumAllocatedGlobalBlockEntries ( int  Row  )  const [inline]

Returns the allocated number of nonzero Block entries in specified global row on this processor.

Definition at line 940 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::MaxNumBlockEntries (  )  const [inline]

Returns the maximum number of nonzero entries across all rows on this processor.

Definition at line 943 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::GlobalMaxNumBlockEntries (  )  const [inline]

Returns the maximum number of nonzero entries across all rows on this processor.

Definition at line 946 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyBlockEntries ( int  Row  )  const [inline]

Returns the current number of nonzero Block entries in specified local row on this processor.

Definition at line 949 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumAllocatedMyBlockEntries ( int  Row  )  const [inline]

Returns the allocated number of nonzero Block entries in specified local row on this processor.

Definition at line 952 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::MaxNumNonzeros (  )  const [inline]

Returns the maximum number of nonzero entries across all block rows on this processor.

Let ki = the number of nonzero values in the ith block row of the VbrMatrix object. For example, if the ith block row had 5 block entries and the size of each entry was 4-by-4, ki would be 80. Then this function return the max over all ki for all row on this processor.

Definition at line 959 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::GlobalMaxNumNonzeros (  )  const [inline]

Returns the maximum number of nonzero entries across all block rows on all processors.

This function returns the max over all processor of MaxNumNonzeros().

Definition at line 964 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::IndexBase (  )  const [inline]

Returns the index base for row and column indices for this graph.

Definition at line 967 of file Epetra_VbrMatrix.h.

const Epetra_CrsGraph& Epetra_VbrMatrix::Graph (  )  const [inline]

Returns a pointer to the Epetra_CrsGraph object associated with this matrix.

Definition at line 970 of file Epetra_VbrMatrix.h.

const Epetra_Import* Epetra_VbrMatrix::Importer (  )  const [inline]

Returns the Epetra_Import object that contains the import operations for distributed operations.

Definition at line 973 of file Epetra_VbrMatrix.h.

const Epetra_Export* Epetra_VbrMatrix::Exporter (  )  const [inline]

Returns the Epetra_Export object that contains the export operations for distributed operations.

Definition at line 976 of file Epetra_VbrMatrix.h.

const Epetra_BlockMap& Epetra_VbrMatrix::DomainMap (  )  const [inline]

Returns the Epetra_BlockMap object associated with the domain of this matrix operator.

Definition at line 979 of file Epetra_VbrMatrix.h.

const Epetra_BlockMap& Epetra_VbrMatrix::RangeMap (  )  const [inline]

Returns the Epetra_BlockMap object associated with the range of this matrix operator.

Definition at line 982 of file Epetra_VbrMatrix.h.

const Epetra_BlockMap& Epetra_VbrMatrix::RowMap (  )  const [inline]

Returns the RowMap object as an Epetra_BlockMap (the Epetra_Map base class) needed for implementing Epetra_RowMatrix.

Definition at line 985 of file Epetra_VbrMatrix.h.

const Epetra_BlockMap& Epetra_VbrMatrix::ColMap (  )  const [inline]

Returns the ColMap as an Epetra_BlockMap (the Epetra_Map base class) needed for implementing Epetra_RowMatrix.

Definition at line 988 of file Epetra_VbrMatrix.h.

const Epetra_Comm& Epetra_VbrMatrix::Comm (  )  const [inline]

Returns a pointer to the Epetra_Comm communicator associated with this matrix.

Reimplemented from Epetra_DistObject.

Definition at line 993 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::LRID ( int  GRID_in  )  const [inline]

Returns the local row index for given global row index, returns -1 if no local row for this global row.

Definition at line 1000 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::GRID ( int  LRID_in  )  const [inline]

Returns the global row index for give local row index, returns IndexBase-1 if we don't have this local row.

Definition at line 1003 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::LCID ( int  GCID_in  )  const [inline]

Returns the local column index for given global column index, returns -1 if no local column for this global column.

Definition at line 1006 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::GCID ( int  LCID_in  )  const [inline]

Returns the global column index for give local column index, returns IndexBase-1 if we don't have this local column.

Definition at line 1009 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::MyGRID ( int  GRID_in  )  const [inline]

Returns true if the GRID passed in belongs to the calling processor in this map, otherwise returns false.

Definition at line 1012 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::MyLRID ( int  LRID_in  )  const [inline]

Returns true if the LRID passed in belongs to the calling processor in this map, otherwise returns false.

Definition at line 1015 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::MyGCID ( int  GCID_in  )  const [inline]

Returns true if the GCID passed in belongs to the calling processor in this map, otherwise returns false.

Definition at line 1018 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::MyLCID ( int  LCID_in  )  const [inline]

Returns true if the LRID passed in belongs to the calling processor in this map, otherwise returns false.

Definition at line 1021 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::MyGlobalBlockRow ( int  GID  )  const [inline]

Returns true of GID is owned by the calling processor, otherwise it returns false.

Definition at line 1024 of file Epetra_VbrMatrix.h.

void Epetra_VbrMatrix::Print ( ostream &  os  )  const [virtual]

Print method.

Reimplemented from Epetra_DistObject.

Definition at line 3255 of file Epetra_VbrMatrix.cpp.

const char* Epetra_VbrMatrix::Label (  )  const [inline, virtual]

Returns a character string describing the operator.

Reimplemented from Epetra_Object.

Definition at line 1038 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::SetUseTranspose ( bool  UseTranspose_in  )  [inline, virtual]

If set true, transpose of this operator will be applied.

This flag allows the transpose of the given operator to be used implicitly. Setting this flag affects only the Apply() and ApplyInverse() methods. If the implementation of this interface does not support transpose use, this method should return a value of -1.

Parameters:
In UseTranspose -If true, multiply by the transpose of operator, otherwise just use operator.
Returns:
Always returns 0.

Implements Epetra_Operator.

Definition at line 1050 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::Apply ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Returns the result of a Epetra_Operator applied to a Epetra_MultiVector X in Y.

Parameters:
In X - A Epetra_MultiVector of dimension NumVectors to multiply with matrix.
Out Y -A Epetra_MultiVector of dimension NumVectors containing result.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_Operator.

Definition at line 3199 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ApplyInverse ( const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [virtual]

Returns the result of a Epetra_Operator inverse applied to an Epetra_MultiVector X in Y.

In this implementation, we use several existing attributes to determine how virtual method ApplyInverse() should call the concrete method Solve(). We pass in the UpperTriangular(), the Epetra_VbrMatrix::UseTranspose(), and NoDiagonal() methods. The most notable warning is that if a matrix has no diagonal values we assume that there is an implicit unit diagonal that should be accounted for when doing a triangular solve.

Parameters:
In X - A Epetra_MultiVector of dimension NumVectors to solve for.
Out Y -A Epetra_MultiVector of dimension NumVectors containing result.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_Operator.

Definition at line 3213 of file Epetra_VbrMatrix.cpp.

bool Epetra_VbrMatrix::HasNormInf (  )  const [inline, virtual]

Returns true because this class can compute an Inf-norm.

Implements Epetra_Operator.

Definition at line 1080 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::UseTranspose (  )  const [inline, virtual]

Returns the current UseTranspose setting.

Implements Epetra_Operator.

Definition at line 1083 of file Epetra_VbrMatrix.h.

const Epetra_Map& Epetra_VbrMatrix::OperatorDomainMap (  )  const [inline, virtual]

Returns the Epetra_Map object associated with the domain of this matrix operator.

Implements Epetra_Operator.

Definition at line 1086 of file Epetra_VbrMatrix.h.

const Epetra_Map& Epetra_VbrMatrix::OperatorRangeMap (  )  const [inline, virtual]

Returns the Epetra_Map object associated with the range of this matrix operator.

Implements Epetra_Operator.

Definition at line 1094 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::ExtractGlobalRowCopy ( int  GlobalRow,
int  Length,
int &  NumEntries,
double *  Values,
int *  Indices 
) const

Returns a copy of the specified global row in user-provided arrays.

Parameters:
In GlobalRow - Global row to extract.
In Length - Length of Values and Indices.
Out NumEntries - Number of nonzero entries extracted.
Out Values - Extracted values for this row.
Out Indices - Extracted global column indices for the corresponding values.
Returns:
Integer error code, set to 0 if successful.

Definition at line 1062 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractMyRowCopy ( int  MyRow,
int  Length,
int &  NumEntries,
double *  Values,
int *  Indices 
) const [virtual]

Returns a copy of the specified local row in user-provided arrays.

Parameters:
In MyRow - Local row to extract.
In Length - Length of Values and Indices.
Out NumEntries - Number of nonzero entries extracted.
Out Values - Extracted values for this row.
Out Indices - Extracted local column indices for the corresponding values.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 1476 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::NumMyRowEntries ( int  MyRow,
int &  NumEntries 
) const [virtual]

Return the current number of values stored for the specified local row.

Parameters:
In MyRow - Local row.
Out NumEntries - Number of nonzero values.
Returns:
Integer error code, set to 0 if successful.

Implements Epetra_RowMatrix.

Definition at line 1465 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::MaxNumEntries (  )  const [virtual]

Returns the maximum of NumMyRowEntries() over all rows.

Implements Epetra_RowMatrix.

Definition at line 1452 of file Epetra_VbrMatrix.cpp.

const Epetra_Map& Epetra_VbrMatrix::RowMatrixRowMap (  )  const [inline, virtual]

Returns the EpetraMap object associated with the rows of this matrix.

Implements Epetra_RowMatrix.

Definition at line 1154 of file Epetra_VbrMatrix.h.

const Epetra_Map& Epetra_VbrMatrix::RowMatrixColMap (  )  const [inline, virtual]

Returns the Epetra_Map object associated with columns of this matrix.

Implements Epetra_RowMatrix.

Definition at line 1158 of file Epetra_VbrMatrix.h.

const Epetra_Import* Epetra_VbrMatrix::RowMatrixImporter (  )  const [inline, virtual]

Returns the Epetra_Import object that contains the import operations for distributed operations.

Implements Epetra_RowMatrix.

Definition at line 1162 of file Epetra_VbrMatrix.h.

const Epetra_BlockMap& Epetra_VbrMatrix::BlockImportMap (  )  const [inline]

Use BlockColMap() instead.

Definition at line 1171 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::TransformToLocal (  ) 

Use FillComplete() instead.

Definition at line 844 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::TransformToLocal ( const Epetra_BlockMap DomainMap,
const Epetra_BlockMap RangeMap 
)

Use FillComplete(const Epetra_BlockMap& DomainMap, const Epetra_BlockMap& RangeMap) instead.

Definition at line 850 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::DeleteMemory (  )  [protected]

Definition at line 354 of file Epetra_VbrMatrix.cpp.

bool Epetra_VbrMatrix::Allocated (  )  const [inline, protected]

Definition at line 1182 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::SetAllocated ( bool  Flag  )  [inline, protected]

Definition at line 1183 of file Epetra_VbrMatrix.h.

Epetra_SerialDenseMatrix*** Epetra_VbrMatrix::Values (  )  const [inline, protected]

Definition at line 1184 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::DoMultiply ( bool  TransA,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [protected]

Definition at line 1670 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::DoSolve ( bool  Upper,
bool  Trans,
bool  UnitDiagonal,
const Epetra_MultiVector X,
Epetra_MultiVector Y 
) const [protected]

Definition at line 2323 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::InitializeDefaults (  )  [protected]

Definition at line 258 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::Allocate (  )  [protected]

Definition at line 314 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginInsertValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices,
bool  IndicesAreLocal 
) [protected]

Definition at line 502 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginReplaceValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices,
bool  IndicesAreLocal 
) [protected]

Definition at line 543 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginSumIntoValues ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices,
bool  IndicesAreLocal 
) [protected]

Definition at line 573 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::SetupForSubmits ( int  BlockRow,
int  NumBlockEntries,
int *  BlockIndices,
bool  IndicesAreLocal,
Epetra_CombineMode  SubmitMode 
) [protected]

Definition at line 584 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::EndReplaceSumIntoValues (  )  [protected]

Definition at line 650 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::EndInsertValues (  )  [protected]

Definition at line 704 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::CopyMat ( double *  A,
int  LDA,
int  NumRows,
int  NumCols,
double *  B,
int  LDB,
bool  SumInto 
) const [protected]

Definition at line 773 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractBlockRowCopy ( int  BlockRow,
int  MaxNumBlockEntries,
int &  RowDim,
int &  NumBlockEntries,
int *  BlockIndices,
int *  ColDims,
bool  IndicesAreLocal 
) const [protected]

Definition at line 1150 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::SetupForExtracts ( int  BlockRow,
int &  RowDim,
int  NumBlockEntries,
bool  ExtractView,
bool  IndicesAreLocal 
) const [protected]

Definition at line 1170 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractBlockDimsCopy ( int  NumBlockEntries,
int *  ColDims 
) const [protected]

Definition at line 1186 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ExtractBlockRowPointers ( int  BlockRow,
int  MaxNumBlockEntries,
int &  RowDim,
int &  NumBlockEntries,
int *  BlockIndices,
Epetra_SerialDenseMatrix **&  Values,
bool  IndicesAreLocal 
) const [protected]

Definition at line 1101 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BeginExtractBlockRowView ( int  BlockRow,
int &  RowDim,
int &  NumBlockEntries,
int *&  BlockIndices,
bool  IndicesAreLocal 
) const [protected]

Definition at line 1254 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::CopyMatDiag ( double *  A,
int  LDA,
int  NumRows,
int  NumCols,
double *  Diagonal 
) const [protected]

Definition at line 1422 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::ReplaceMatDiag ( double *  A,
int  LDA,
int  NumRows,
int  NumCols,
double *  Diagonal 
) [protected]

Definition at line 1437 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::BlockRowMultiply ( bool  TransA,
int  RowDim,
int  NumEntries,
int *  BlockIndices,
int  RowOff,
int *  FirstPointInElementList,
int *  ElementSizeList,
double  Alpha,
Epetra_SerialDenseMatrix **  As,
double **  X,
double  Beta,
double **  Y,
int  NumVectors 
) const [protected]

Definition at line 1996 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::BlockRowMultiply ( bool  TransA,
int  RowDim,
int  NumEntries,
int *  BlockIndices,
int  RowOff,
int *  FirstPointInElementList,
int *  ElementSizeList,
Epetra_SerialDenseMatrix **  As,
double **  X,
double **  Y,
int  NumVectors 
) const [protected]

Definition at line 2208 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::FastBlockRowMultiply ( bool  TransA,
int  RowDim,
int  NumEntries,
int *  BlockIndices,
int  RowOff,
int *  FirstPointInElementList,
int *  ElementSizeList,
Epetra_SerialDenseMatrix **  As,
double **  X,
double **  Y,
int  NumVectors 
) const [protected]

Definition at line 2049 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::InverseSums ( bool  DoRows,
Epetra_Vector x 
) const [protected]

Definition at line 2413 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::Scale ( bool  DoRows,
const Epetra_Vector x 
) [protected]

Definition at line 2547 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::BlockRowNormInf ( int  RowDim,
int  NumEntries,
Epetra_SerialDenseMatrix **  As,
double *  Y 
) const [protected]

Definition at line 2683 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::BlockRowNormOne ( int  RowDim,
int  NumEntries,
int *  BlockRowIndices,
Epetra_SerialDenseMatrix **  As,
int *  ColFirstPointInElementList,
double *  x 
) const [protected]

Definition at line 2829 of file Epetra_VbrMatrix.cpp.

void Epetra_VbrMatrix::SetStaticGraph ( bool  Flag  )  [inline, protected]

Definition at line 1260 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CheckSizes ( const Epetra_SrcDistObject A  )  [protected, virtual]

Allows the source and target (this) objects to be compared for compatibility, return nonzero if not.

Implements Epetra_DistObject.

Definition at line 2847 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::CopyAndPermute ( const Epetra_SrcDistObject Source,
int  NumSameIDs,
int  NumPermuteIDs,
int *  PermuteToLIDs,
int *  PermuteFromLIDs,
const Epetra_OffsetIndex Indexor 
) [protected, virtual]

Perform ID copies and permutations that are on processor.

Implements Epetra_DistObject.

Definition at line 2853 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::PackAndPrepare ( const Epetra_SrcDistObject Source,
int  NumExportIDs,
int *  ExportLIDs,
int &  LenExports,
char *&  Exports,
int &  SizeOfPacket,
int *  Sizes,
bool &  VarSizes,
Epetra_Distributor Distor 
) [protected, virtual]

Perform any packing or preparation required for call to DoTransfer().

Implements Epetra_DistObject.

Definition at line 2928 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::UnpackAndCombine ( const Epetra_SrcDistObject Source,
int  NumImportIDs,
int *  ImportLIDs,
int  LenImports,
char *  Imports,
int &  SizeOfPacket,
Epetra_Distributor Distor,
Epetra_CombineMode  CombineMode,
const Epetra_OffsetIndex Indexor 
) [protected, virtual]

Perform any unpacking and combining after call to DoTransfer().

Implements Epetra_DistObject.

Definition at line 3011 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::SortEntries (  )  [protected]

Sort column entries, row-by-row, in ascending order.

Definition at line 856 of file Epetra_VbrMatrix.cpp.

bool Epetra_VbrMatrix::Sorted (  )  const [inline, protected]

If SortEntries() has been called, this query returns true, otherwise it returns false.

Definition at line 1295 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::MergeRedundantEntries (  )  [protected]

Add entries that have the same column index. Remove redundant entries from list.

Definition at line 898 of file Epetra_VbrMatrix.cpp.

bool Epetra_VbrMatrix::NoRedundancies (  )  const [inline, protected]

If MergeRedundantEntries() has been called, this query returns true, otherwise it returns false.

Definition at line 1301 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::StaticGraph (  )  const [inline, protected]

Definition at line 1303 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::GeneratePointObjects (  )  const [protected]

Definition at line 3107 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::BlockMap2PointMap ( const Epetra_BlockMap BlockMap,
Epetra_Map *&  PointMap 
) const [protected]

Definition at line 3150 of file Epetra_VbrMatrix.cpp.

int Epetra_VbrMatrix::UpdateOperatorXY ( const Epetra_MultiVector X,
const Epetra_MultiVector Y 
) const [protected]

Definition at line 3181 of file Epetra_VbrMatrix.cpp.


Member Data Documentation

Epetra_CrsGraph* Epetra_VbrMatrix::Graph_ [protected]

Definition at line 1309 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::Allocated_ [protected]

Definition at line 1310 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::StaticGraph_ [protected]

Definition at line 1311 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::UseTranspose_ [protected]

Definition at line 1312 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::constructedWithFilledGraph_ [protected]

Definition at line 1313 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::matrixFillCompleteCalled_ [protected]

Definition at line 1314 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::StorageOptimized_ [protected]

Definition at line 1315 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::NumMyBlockRows_ [protected]

Definition at line 1317 of file Epetra_VbrMatrix.h.

Epetra_DataAccess Epetra_VbrMatrix::CV_ [protected]

Definition at line 1319 of file Epetra_VbrMatrix.h.

int* Epetra_VbrMatrix::NumBlockEntriesPerRow_ [protected]

Definition at line 1322 of file Epetra_VbrMatrix.h.

int* Epetra_VbrMatrix::NumAllocatedBlockEntriesPerRow_ [protected]

Definition at line 1323 of file Epetra_VbrMatrix.h.

int** Epetra_VbrMatrix::Indices_ [protected]

Definition at line 1324 of file Epetra_VbrMatrix.h.

int* Epetra_VbrMatrix::ElementSizeList_ [protected]

Definition at line 1325 of file Epetra_VbrMatrix.h.

int* Epetra_VbrMatrix::FirstPointInElementList_ [protected]

Definition at line 1326 of file Epetra_VbrMatrix.h.

Epetra_SerialDenseMatrix*** Epetra_VbrMatrix::Entries_ [protected]

Definition at line 1328 of file Epetra_VbrMatrix.h.

double* Epetra_VbrMatrix::All_Values_Orig_ [protected]

Definition at line 1330 of file Epetra_VbrMatrix.h.

double* Epetra_VbrMatrix::All_Values_ [protected]

Definition at line 1331 of file Epetra_VbrMatrix.h.

double Epetra_VbrMatrix::NormInf_ [mutable, protected]

Definition at line 1333 of file Epetra_VbrMatrix.h.

double Epetra_VbrMatrix::NormOne_ [mutable, protected]

Definition at line 1334 of file Epetra_VbrMatrix.h.

double Epetra_VbrMatrix::NormFrob_ [mutable, protected]

Definition at line 1335 of file Epetra_VbrMatrix.h.

Epetra_MultiVector* Epetra_VbrMatrix::ImportVector_ [mutable, protected]

Definition at line 1337 of file Epetra_VbrMatrix.h.

Epetra_MultiVector* Epetra_VbrMatrix::ExportVector_ [mutable, protected]

Definition at line 1338 of file Epetra_VbrMatrix.h.

int* Epetra_VbrMatrix::TempRowDims_ [mutable, protected]

Definition at line 1341 of file Epetra_VbrMatrix.h.

Epetra_SerialDenseMatrix** Epetra_VbrMatrix::TempEntries_ [mutable, protected]

Definition at line 1342 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::LenTemps_ [mutable, protected]

Definition at line 1343 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurBlockRow_ [mutable, protected]

Definition at line 1344 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurNumBlockEntries_ [mutable, protected]

Definition at line 1345 of file Epetra_VbrMatrix.h.

int* Epetra_VbrMatrix::CurBlockIndices_ [mutable, protected]

Definition at line 1346 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurEntry_ [mutable, protected]

Definition at line 1347 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::CurIndicesAreLocal_ [mutable, protected]

Definition at line 1348 of file Epetra_VbrMatrix.h.

Epetra_CombineMode Epetra_VbrMatrix::CurSubmitMode_ [mutable, protected]

Definition at line 1349 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurExtractBlockRow_ [mutable, protected]

Definition at line 1352 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurExtractEntry_ [mutable, protected]

Definition at line 1353 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurExtractNumBlockEntries_ [mutable, protected]

Definition at line 1354 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::CurExtractIndicesAreLocal_ [mutable, protected]

Definition at line 1355 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::CurExtractView_ [mutable, protected]

Definition at line 1356 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurRowDim_ [mutable, protected]

Definition at line 1357 of file Epetra_VbrMatrix.h.

int Epetra_VbrMatrix::CurBlockDiag_ [mutable, protected]

Definition at line 1360 of file Epetra_VbrMatrix.h.

Epetra_Map* Epetra_VbrMatrix::RowMatrixRowMap_ [mutable, protected]

Definition at line 1363 of file Epetra_VbrMatrix.h.

Epetra_Map* Epetra_VbrMatrix::RowMatrixColMap_ [mutable, protected]

Definition at line 1364 of file Epetra_VbrMatrix.h.

Epetra_Import* Epetra_VbrMatrix::RowMatrixImporter_ [mutable, protected]

Definition at line 1365 of file Epetra_VbrMatrix.h.

Epetra_Map* Epetra_VbrMatrix::OperatorDomainMap_ [mutable, protected]

Definition at line 1368 of file Epetra_VbrMatrix.h.

Epetra_Map* Epetra_VbrMatrix::OperatorRangeMap_ [mutable, protected]

Definition at line 1369 of file Epetra_VbrMatrix.h.

Epetra_MultiVector* Epetra_VbrMatrix::OperatorX_ [mutable, protected]

Definition at line 1370 of file Epetra_VbrMatrix.h.

Epetra_MultiVector* Epetra_VbrMatrix::OperatorY_ [mutable, protected]

Definition at line 1371 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::HavePointObjects_ [mutable, protected]

Definition at line 1374 of file Epetra_VbrMatrix.h.

bool Epetra_VbrMatrix::squareFillCompleteCalled_ [protected]

Definition at line 1376 of file Epetra_VbrMatrix.h.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:41:09 2010 for Epetra Package Browser (Single Doxygen Collection) by  doxygen 1.4.7