LOCA::Epetra::LowRankUpdateOp Class Reference

An Epetra operator for implementing the operator $P = J + U V^T$. More...

#include <LOCA_Epetra_LowRankUpdateOp.H>

Inheritance diagram for LOCA::Epetra::LowRankUpdateOp:
Inheritance graph
[legend]
Collaboration diagram for LOCA::Epetra::LowRankUpdateOp:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LowRankUpdateOp (const Teuchos::RCP< LOCA::GlobalData > &global_data, const Teuchos::RCP< Epetra_Operator > &jacOperator, const Teuchos::RCP< const Epetra_MultiVector > &U_multiVec, const Teuchos::RCP< const Epetra_MultiVector > &V_multiVec, bool setup_for_solve)
 Constructor.
virtual ~LowRankUpdateOp ()
 Destructor.
virtual int SetUseTranspose (bool UseTranspose)
 Set to true if the transpose of the operator is requested.
virtual int Apply (const Epetra_MultiVector &Input, Epetra_MultiVector &Result) const
 Returns the result of a Epetra_Operator applied to a Epetra_MultiVector Input in Result as described above.
virtual int ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
 This method does nothing.
virtual double NormInf () const
 Returns an approximate infinity norm of the operator matrix.
virtual const char * Label () const
 Returns a character string describing the operator.
virtual bool UseTranspose () const
 Returns the current UseTranspose setting. Always returns false.
virtual bool HasNormInf () const
 Returns true if the this object can provide an approximate Inf-norm, false otherwise.
virtual const Epetra_CommComm () const
 Returns a reference to the Epetra_Comm communicator associated with this operator.
virtual const Epetra_MapOperatorDomainMap () const
 Returns the Epetra_Map object associated with the domain of this matrix operator.
virtual const Epetra_MapOperatorRangeMap () const
 Returns the Epetra_Map object associated with the range of this matrix operator.

Protected Attributes

Teuchos::RCP< LOCA::GlobalDataglobalData
 Global data object.
string label
 Label for operator.
Epetra_LocalMap localMap
 Local map for generating temporary matrices.
Teuchos::RCP< Epetra_OperatorJ
 Stores operator representing J.
Teuchos::RCP< const
Epetra_MultiVector
U
 Stores multivector representing U.
Teuchos::RCP< const
Epetra_MultiVector
V
 Stores multivector representing V.
bool useTranspose
 Flag indicating whether to use the transpose.
Teuchos::RCP< Epetra_MultiVectortmpMat
 Temporary matrix.
Teuchos::RCP< Epetra_MultiVectorJinvU
 Stores J^{-1}*U.
Teuchos::RCP< Epetra_MultiVectorlu
 Stores LU factorization of I + V^T*J^{-1}*U.
std::vector< int > ipiv
 Stores pivots for LU factorization.
Teuchos::LAPACK< int, double > lapack
 Lapack wrappers.

Detailed Description

An Epetra operator for implementing the operator $P = J + U V^T$.

This class implements the Epetra_Operator interface for $P = J + U V^T$ where $J$ is an Epetra_Operator and $U$ and $V$ are Epetra_MultiVectors.


Constructor & Destructor Documentation

LOCA::Epetra::LowRankUpdateOp::LowRankUpdateOp ( const Teuchos::RCP< LOCA::GlobalData > &  global_data,
const Teuchos::RCP< Epetra_Operator > &  jacOperator,
const Teuchos::RCP< const Epetra_MultiVector > &  U_multiVec,
const Teuchos::RCP< const Epetra_MultiVector > &  V_multiVec,
bool  setup_for_solve 
)

Constructor.

Parameters:
global_data [in] The global data object
jacOperator [in] Jacobian operator J
U_multiVec [in] Multivector representing U
V_multiVec [in] Multivector representing V

References Teuchos::LAPACK< OrdinalType, ScalarType >::GETRF(), ipiv, J, JinvU, lapack, localMap, lu, Teuchos::rcp(), U, and V.


Member Function Documentation

double LOCA::Epetra::LowRankUpdateOp::NormInf (  )  const [virtual]

Returns an approximate infinity norm of the operator matrix.

This is defined only if NormInf() of the underlying operator $J$ is defined and is given by $\|J\|_\infty+\|U\|_\infty\|V\|_\infty$.

Implements Epetra_Operator.

Reimplemented in LOCA::Epetra::LowRankUpdateRowMatrix.

References J, U, and V.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Generated on Wed Apr 13 09:59:42 2011 for NOX by  doxygen 1.6.3