|
NOX
Development
|
An Epetra row matrix for implementing the operator
.
More...
#include <LOCA_Epetra_LowRankUpdateRowMatrix.H>


Public Member Functions | |
| LowRankUpdateRowMatrix (const Teuchos::RCP< LOCA::GlobalData > &global_data, const Teuchos::RCP< Epetra_RowMatrix > &jacRowMatrix, const Teuchos::RCP< Epetra_MultiVector > &U_multiVec, const Teuchos::RCP< Epetra_MultiVector > &V_multiVec, bool setup_for_solve, bool include_UV_terms) | |
| Constructor. | |
| virtual | ~LowRankUpdateRowMatrix () |
| Destructor. | |
| virtual const Epetra_BlockMap & | Map () const |
| Returns a reference to the Epetra_BlockMap for this object. | |
| virtual int | NumMyRowEntries (int MyRow, int &NumEntries) const |
| Returns the number of nonzero entries in MyRow. | |
| virtual int | MaxNumEntries () const |
| Returns the maximum of NumMyRowEntries() over all rows. | |
| 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. | |
| virtual int | ExtractDiagonalCopy (Epetra_Vector &Diagonal) const |
| Returns a copy of the main diagonal in a user-provided vector. | |
| 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. | |
| 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. | |
| virtual int | InvRowSums (Epetra_Vector &x) const |
| Computes the sum of absolute values of the rows of the Epetra_RowMatrix, results returned in x. | |
| virtual int | LeftScale (const Epetra_Vector &x) |
| Scales the Epetra_RowMatrix on the left with a Epetra_Vector x. | |
| virtual int | InvColSums (Epetra_Vector &x) const |
| Computes the sum of absolute values of the columns of the Epetra_RowMatrix, results returned in x. | |
| virtual int | RightScale (const Epetra_Vector &x) |
| Scales the Epetra_RowMatrix on the right with a Epetra_Vector x. | |
| virtual bool | Filled () const |
| If FillComplete() has been called, this query returns true, otherwise it returns false. | |
| virtual double | NormInf () const |
| Returns the infinity norm of the global matrix. | |
| virtual double | NormOne () const |
| Returns the one norm of the global matrix. | |
| virtual int | NumGlobalNonzeros () const |
| Returns the number of nonzero entries in the global matrix. | |
| virtual long long | NumGlobalNonzeros64 () const |
| virtual int | NumGlobalRows () const |
| Returns the number of global matrix rows. | |
| virtual long long | NumGlobalRows64 () const |
| virtual int | NumGlobalCols () const |
| Returns the number of global matrix columns. | |
| virtual long long | NumGlobalCols64 () const |
| virtual int | NumGlobalDiagonals () const |
| Returns the number of global nonzero diagonal entries, based on global row/column index comparisons. | |
| virtual long long | NumGlobalDiagonals64 () const |
| virtual int | NumMyNonzeros () const |
| Returns the number of nonzero entries in the calling processor's portion of the matrix. | |
| virtual int | NumMyRows () const |
| Returns the number of matrix rows owned by the calling processor. | |
| virtual int | NumMyCols () const |
| Returns the number of matrix columns owned by the calling processor. | |
| virtual int | NumMyDiagonals () const |
| Returns the number of local nonzero diagonal entries, based on global row/column index comparisons. | |
| virtual bool | LowerTriangular () const |
| If matrix is lower triangular in local index space, this query returns true, otherwise it returns false. | |
| virtual bool | UpperTriangular () const |
| If matrix is upper triangular in local index space, this query returns true, otherwise it returns false. | |
| virtual const Epetra_Map & | RowMatrixRowMap () const |
| Returns the Epetra_Map object associated with the rows of this matrix. | |
| virtual const Epetra_Map & | RowMatrixColMap () const |
| Returns the Epetra_Map object associated with the columns of this matrix. | |
| virtual const Epetra_Import * | RowMatrixImporter () const |
| Returns the Epetra_Import object that contains the import operations for distributed operations. | |
Protected Member Functions | |
| double | computeUV (int MyRow, int MyCol) const |
Compute MyRow, MyCol entry of . | |
Protected Attributes | |
| Teuchos::RCP< Epetra_RowMatrix > | J_rowMatrix |
| Stores row matrix representing J. | |
| Teuchos::RCP< Epetra_MultiVector > | nonconst_U |
| Stores pointer to non-const U. | |
| Teuchos::RCP< Epetra_MultiVector > | nonconst_V |
| Stores pointer to non-const V. | |
| bool | includeUV |
| Flag indicating whether to include U*V^T terms. | |
| int | m |
| Number of columns in U and V. | |
| const Epetra_BlockMap & | U_map |
| Map for U. | |
| const Epetra_BlockMap & | V_map |
| Map for V. | |
| const Epetra_BlockMap & | row_map |
| Row map for J. | |
An Epetra row matrix for implementing the operator
.
This class implements the Epetra_RowMatrix interface for
where
is an Epetra_RowMatrix and
and
are Epetra_MultiVectors. It is derived from LOCA::Epetra::LowRankUpdateOp to implement the Epetra_Operator interface. The interface here implements the Epetra_RowMatrix interface when the matrix
is itself a row matrix. This allows preconditioners to be computed and scaling in linear systems to be performed when using this operator. The implementation here merely adds the corresponding entries for
to the rows of
. Note however this is only an approximation to the true matrix
.
This class assumes
and
have the same distribution as the rows of
.
| LOCA::Epetra::LowRankUpdateRowMatrix::LowRankUpdateRowMatrix | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, |
| const Teuchos::RCP< Epetra_RowMatrix > & | jacRowMatrix, | ||
| const Teuchos::RCP< Epetra_MultiVector > & | U_multiVec, | ||
| const Teuchos::RCP< Epetra_MultiVector > & | V_multiVec, | ||
| bool | setup_for_solve, | ||
| bool | include_UV_terms | ||
| ) |
Constructor.
| global_data | [in] The global data object |
| jacRowMatrix | [in] Jacobian operator J as a row matrix |
| U_multiVec | [in] Multivector representing U |
| V_multiVec | [in] Multivector representing V |
| setup_for_solve | [in] Setup data structures for ApplyInverse() |
| include_UV_terms | [in] Include terms in RowMatrix routines ExtractRowCopy(), ExtactDiagonalCopy(), InvRowSums(), InvColSums(), NormInf() and NormOne(). |
1.7.6.1