Amesos Package Browser (Single Doxygen Collection)
Development
|
Amesos_TestRowMatrix: a class to test Epetra_RowMatrix based codes. More...
#include <Amesos_TestRowMatrix.h>
Public Member Functions | |
int | SetUseTranspose (bool UseTranspose_in) |
Sets use transpose (not implemented). More... | |
bool | UseTranspose () const |
Returns the current UseTranspose setting. More... | |
bool | HasNormInf () const |
Returns true if the this object can provide an approximate Inf-norm, false otherwise. More... | |
const Epetra_Comm & | Comm () const |
Returns a pointer to the Epetra_Comm communicator associated with this operator. More... | |
const Epetra_Map & | OperatorDomainMap () const |
Returns the Epetra_Map object associated with the domain of this operator. More... | |
const Epetra_Map & | OperatorRangeMap () const |
Returns the Epetra_Map object associated with the range of this operator. More... | |
const Epetra_BlockMap & | Map () const |
const char * | Label () const |
Private Member Functions | |
Epetra_RowMatrix & | Matrix () |
const Epetra_RowMatrix & | Matrix () const |
Private Attributes | |
Epetra_RowMatrix * | Matrix_ |
Pointer to the matrix to be preconditioned. More... | |
Amesos_TestRowMatrix (Epetra_RowMatrix *Matrix_in) | |
Constructor. More... | |
virtual | ~Amesos_TestRowMatrix () |
Destructor. More... | |
virtual int | NumMyRowEntries (int MyRow, int &NumEntries) const |
Returns the number of nonzero entries in MyRow. More... | |
virtual int | MaxNumEntries () const |
Returns the maximum of NumMyRowEntries() over all rows. More... | |
virtual 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. More... | |
virtual int | ExtractDiagonalCopy (Epetra_Vector &Diagonal) const |
Returns a copy of the main diagonal in a user-provided vector. More... | |
virtual int | Multiply (bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
Returns the result of a Epetra_RowMatrix multiplied by a Epetra_MultiVector X in Y. More... | |
virtual int | Solve (bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
Returns result of a local-only solve using a triangular Epetra_RowMatrix with Epetra_MultiVectors X and Y (NOT IMPLEMENTED). More... | |
virtual int | Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
virtual int | ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
virtual int | InvRowSums (Epetra_Vector &x) const |
Computes the sum of absolute values of the rows of the Epetra_RowMatrix, results returned in x (NOT IMPLEMENTED). More... | |
virtual int | LeftScale (const Epetra_Vector &x) |
Scales the Epetra_RowMatrix on the left with a Epetra_Vector x (NOT IMPLEMENTED). More... | |
virtual int | InvColSums (Epetra_Vector &x) const |
Computes the sum of absolute values of the columns of the Epetra_RowMatrix, results returned in x (NOT IMPLEMENTED). More... | |
virtual int | RightScale (const Epetra_Vector &x) |
Scales the Epetra_RowMatrix on the right with a Epetra_Vector x (NOT IMPLEMENTED). More... | |
virtual bool | Filled () const |
If FillComplete() has been called, this query returns true, otherwise it returns false. More... | |
virtual double | NormInf () const |
Returns the infinity norm of the global matrix. More... | |
virtual double | NormOne () const |
Returns the one norm of the global matrix. More... | |
virtual int | NumGlobalNonzeros () const |
Returns the number of nonzero entries in the global matrix. More... | |
virtual int | NumGlobalRows () const |
Returns the number of global matrix rows. More... | |
virtual int | NumGlobalCols () const |
Returns the number of global matrix columns. More... | |
virtual int | NumGlobalDiagonals () const |
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons. More... | |
virtual long long | NumGlobalNonzeros64 () const |
Returns the number of nonzero entries in the global matrix. More... | |
virtual long long | NumGlobalRows64 () const |
Returns the number of global matrix rows. More... | |
virtual long long | NumGlobalCols64 () const |
Returns the number of global matrix columns. More... | |
virtual long long | NumGlobalDiagonals64 () const |
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons. More... | |
virtual int | NumMyNonzeros () const |
Returns the number of nonzero entries in the calling processor's portion of the matrix. More... | |
virtual int | NumMyRows () const |
Returns the number of matrix rows owned by the calling processor. More... | |
virtual int | NumMyCols () const |
Returns the number of matrix columns owned by the calling processor. More... | |
virtual int | NumMyDiagonals () const |
Returns the number of local nonzero diagonal entries, based on global row/column index comparisons. More... | |
virtual bool | LowerTriangular () const |
If matrix is lower triangular in local index space, this query returns true, otherwise it returns false. More... | |
virtual bool | UpperTriangular () const |
If matrix is upper triangular in local index space, this query returns true, otherwise it returns false. More... | |
virtual const Epetra_Map & | RowMatrixRowMap () const |
Returns the Epetra_Map object associated with the rows of this matrix. More... | |
virtual const Epetra_Map & | RowMatrixColMap () const |
Returns the Epetra_Map object associated with the columns of this matrix. More... | |
virtual const Epetra_Import * | RowMatrixImporter () const |
Returns the Epetra_Import object that contains the import operations for distributed operations. More... | |
Amesos_TestRowMatrix: a class to test Epetra_RowMatrix based codes.
Class Amesos_TestRowMatrix enables the creation of a Epetra_RowMatrix derived class for testing purposed. This class requires another Epetra_RowMatrix as input, and minimic the behavior of this matrix. However, as it this object is not derived from Epetra_CrsMatrix or Epetra_VbrMatrix, a dynamic_cast will not result in any Epetra_CrsMatrix or Epetra_VrbMatrix object.
Definition at line 36 of file Amesos_TestRowMatrix.h.
|
inline |
Constructor.
Definition at line 41 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Destructor.
Definition at line 48 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of nonzero entries in MyRow.
MyRow | - (In) Local row. |
NumEntries | - (Out) Number of nonzero values present. |
Implements Epetra_RowMatrix.
Definition at line 64 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the maximum of NumMyRowEntries() over all rows.
Implements Epetra_RowMatrix.
Definition at line 70 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns a copy of the specified local row in user-provided arrays.
MyRow | - (In) Local row to extract. |
Length | - (In) Length of Values and Indices. |
NumEntries | - (Out) Number of nonzero entries extracted. |
Values | - (Out) Extracted values for this row. |
Indices | - (Out) Extracted global column indices for the corresponding values. |
Implements Epetra_RowMatrix.
Definition at line 90 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns a copy of the main diagonal in a user-provided vector.
Diagonal | - (Out) Extracted main diagonal. |
Implements Epetra_RowMatrix.
Definition at line 103 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the result of a Epetra_RowMatrix multiplied by a Epetra_MultiVector X in Y.
TransA | -(In) If true, multiply by the transpose of matrix, otherwise just use matrix. |
X | - (In) A Epetra_MultiVector of dimension NumVectors to multiply with matrix. |
Y | -(Out) A Epetra_MultiVector of dimension NumVectorscontaining result. |
Implements Epetra_RowMatrix.
Definition at line 122 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns result of a local-only solve using a triangular Epetra_RowMatrix with Epetra_MultiVectors X and Y (NOT IMPLEMENTED).
Implements Epetra_RowMatrix.
Definition at line 128 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Implements Epetra_Operator.
Definition at line 134 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Implements Epetra_Operator.
Definition at line 140 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Computes the sum of absolute values of the rows of the Epetra_RowMatrix, results returned in x (NOT IMPLEMENTED).
Implements Epetra_RowMatrix.
Definition at line 146 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Scales the Epetra_RowMatrix on the left with a Epetra_Vector x (NOT IMPLEMENTED).
Implements Epetra_RowMatrix.
Definition at line 152 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Computes the sum of absolute values of the columns of the Epetra_RowMatrix, results returned in x (NOT IMPLEMENTED).
Implements Epetra_RowMatrix.
Definition at line 158 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Scales the Epetra_RowMatrix on the right with a Epetra_Vector x (NOT IMPLEMENTED).
Implements Epetra_RowMatrix.
Definition at line 165 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
If FillComplete() has been called, this query returns true, otherwise it returns false.
Implements Epetra_RowMatrix.
Definition at line 175 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the infinity norm of the global matrix.
Implements Epetra_RowMatrix.
Definition at line 184 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the one norm of the global matrix.
Implements Epetra_RowMatrix.
Definition at line 193 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of nonzero entries in the global matrix.
Implements Epetra_RowMatrix.
Definition at line 200 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of global matrix rows.
Implements Epetra_RowMatrix.
Definition at line 206 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of global matrix columns.
Implements Epetra_RowMatrix.
Definition at line 212 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons.
Implements Epetra_RowMatrix.
Definition at line 218 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of nonzero entries in the global matrix.
Implements Epetra_RowMatrix.
Definition at line 225 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of global matrix rows.
Implements Epetra_RowMatrix.
Definition at line 231 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of global matrix columns.
Implements Epetra_RowMatrix.
Definition at line 237 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of global nonzero diagonal entries, based on global row/column index comparisons.
Implements Epetra_RowMatrix.
Definition at line 243 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of nonzero entries in the calling processor's portion of the matrix.
Implements Epetra_RowMatrix.
Definition at line 249 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of matrix rows owned by the calling processor.
Implements Epetra_RowMatrix.
Definition at line 255 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of matrix columns owned by the calling processor.
Implements Epetra_RowMatrix.
Definition at line 261 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the number of local nonzero diagonal entries, based on global row/column index comparisons.
Implements Epetra_RowMatrix.
Definition at line 267 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
If matrix is lower triangular in local index space, this query returns true, otherwise it returns false.
Implements Epetra_RowMatrix.
Definition at line 273 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
If matrix is upper triangular in local index space, this query returns true, otherwise it returns false.
Implements Epetra_RowMatrix.
Definition at line 279 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the Epetra_Map object associated with the rows of this matrix.
Implements Epetra_RowMatrix.
Definition at line 285 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the Epetra_Map object associated with the columns of this matrix.
Implements Epetra_RowMatrix.
Definition at line 290 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the Epetra_Import object that contains the import operations for distributed operations.
Implements Epetra_RowMatrix.
Definition at line 296 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Sets use transpose (not implemented).
Implements Epetra_Operator.
Definition at line 313 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the current UseTranspose setting.
Implements Epetra_Operator.
Definition at line 319 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns true if the this object can provide an approximate Inf-norm, false otherwise.
Implements Epetra_Operator.
Definition at line 325 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns a pointer to the Epetra_Comm communicator associated with this operator.
Implements Epetra_Operator.
Definition at line 331 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the Epetra_Map object associated with the domain of this operator.
Implements Epetra_Operator.
Definition at line 337 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Returns the Epetra_Map object associated with the range of this operator.
Implements Epetra_Operator.
Definition at line 343 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Implements Epetra_SrcDistObject.
Definition at line 349 of file Amesos_TestRowMatrix.h.
|
inlinevirtual |
Implements Epetra_Operator.
Definition at line 354 of file Amesos_TestRowMatrix.h.
|
inlineprivate |
Definition at line 362 of file Amesos_TestRowMatrix.h.
|
inlineprivate |
Definition at line 367 of file Amesos_TestRowMatrix.h.
|
private |
Pointer to the matrix to be preconditioned.
Definition at line 373 of file Amesos_TestRowMatrix.h.