Teko Version of the Day
Public Member Functions | Protected Attributes
Teko::DiagnosticLinearOp Class Reference

This linear operator prints diagnostics about operator application and creation times. It is useful for debugging problems and determining bottle necks. More...

#include <Teko_DiagnosticLinearOp.hpp>

Inheritance diagram for Teko::DiagnosticLinearOp:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DiagnosticLinearOp (const Teuchos::RCP< std::ostream > &ostrm, const ModifiableLinearOp &A, const std::string &diagnosticString)
 This constructor explicitly takes the linear operator that needs to be wrapped and a string for output that describes the diagnostics.
 DiagnosticLinearOp (const Teuchos::RCP< std::ostream > &ostrm, const LinearOp &fwdOp, const ModifiableLinearOp &A, const std::string &diagnosticString)
 This constructor explicitly takes the linear operator that needs to be wrapped and a string for output that describes the diagnostics.
virtual ~DiagnosticLinearOp ()
 Destructor prints out timing information about this operator.
Inherited methods from Thyra::LinearOpBase
virtual VectorSpace range () const
 Range space of this operator.
virtual VectorSpace domain () const
 Domain space of this operator.
virtual void implicitApply (const MultiVector &x, MultiVector &y, const double alpha=1.0, const double beta=0.0) const
 Perform a matrix vector multiply with this operator.

Protected Attributes

ModifiableLinearOp wrapOpA_
 inverse of $ S $
Teko::LinearOp fwdOp_
 inverse of $ S $

Detailed Description

This linear operator prints diagnostics about operator application and creation times. It is useful for debugging problems and determining bottle necks.

Definition at line 69 of file Teko_DiagnosticLinearOp.hpp.


Constructor & Destructor Documentation

Teko::DiagnosticLinearOp::DiagnosticLinearOp ( const Teuchos::RCP< std::ostream > &  ostrm,
const ModifiableLinearOp &  A,
const std::string &  diagnosticString 
)

This constructor explicitly takes the linear operator that needs to be wrapped and a string for output that describes the diagnostics.

Definition at line 59 of file Teko_DiagnosticLinearOp.cpp.

Teko::DiagnosticLinearOp::DiagnosticLinearOp ( const Teuchos::RCP< std::ostream > &  ostrm,
const LinearOp &  fwdOp,
const ModifiableLinearOp &  A,
const std::string &  diagnosticString 
)

This constructor explicitly takes the linear operator that needs to be wrapped and a string for output that describes the diagnostics.

Definition at line 68 of file Teko_DiagnosticLinearOp.cpp.

Teko::DiagnosticLinearOp::~DiagnosticLinearOp ( ) [virtual]

Destructor prints out timing information about this operator.

Definition at line 74 of file Teko_DiagnosticLinearOp.cpp.


Member Function Documentation

virtual VectorSpace Teko::DiagnosticLinearOp::range ( ) const [inline, virtual]

Range space of this operator.

Implements Teko::ImplicitLinearOp.

Definition at line 91 of file Teko_DiagnosticLinearOp.hpp.

virtual VectorSpace Teko::DiagnosticLinearOp::domain ( ) const [inline, virtual]

Domain space of this operator.

Implements Teko::ImplicitLinearOp.

Definition at line 94 of file Teko_DiagnosticLinearOp.hpp.

void Teko::DiagnosticLinearOp::implicitApply ( const MultiVector &  x,
MultiVector &  y,
const double  alpha = 1.0,
const double  beta = 0.0 
) const [virtual]

Perform a matrix vector multiply with this operator.

The apply function takes one vector as input and applies the inverse $ LDU $ decomposition. The result is returned in $y$. If this operator is reprsented as $M$ then $ y = \alpha M x + \beta y $ (ignoring conjugation!).

Parameters:
[in]x
[in,out]y
[in]alpha(default=1)
[in]beta(default=0)

Implements Teko::ImplicitLinearOp.

Definition at line 100 of file Teko_DiagnosticLinearOp.cpp.


Member Data Documentation

ModifiableLinearOp Teko::DiagnosticLinearOp::wrapOpA_ [protected]

inverse of $ S $

Definition at line 136 of file Teko_DiagnosticLinearOp.hpp.

Teko::LinearOp Teko::DiagnosticLinearOp::fwdOp_ [protected]

inverse of $ S $

Definition at line 137 of file Teko_DiagnosticLinearOp.hpp.


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