Teko  Version of the Day
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
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]

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. More...
 
 DiagnosticLinearOp (const Teuchos::RCP< std::ostream > &ostrm, const LinearOp &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. More...
 
 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. More...
 
virtual ~DiagnosticLinearOp ()
 Destructor prints out timing information about this operator. More...
 
Inherited methods from Thyra::LinearOpBase
virtual VectorSpace range () const
 Range space of this operator. More...
 
virtual VectorSpace domain () const
 Domain space of this operator. More...
 
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. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Teko::ImplicitLinearOp
virtual bool opSupportedImpl (const Thyra::EOpTransp M_trans) const
 Functions required by Thyra::LinearOpBase. More...
 

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 &  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 64 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 73 of file Teko_DiagnosticLinearOp.cpp.

Teko::DiagnosticLinearOp::~DiagnosticLinearOp ( )
virtual

Destructor prints out timing information about this operator.

Definition at line 79 of file Teko_DiagnosticLinearOp.cpp.

Member Function Documentation

virtual VectorSpace Teko::DiagnosticLinearOp::range ( ) const
inlinevirtual

Range space of this operator.

Implements Teko::ImplicitLinearOp.

Definition at line 97 of file Teko_DiagnosticLinearOp.hpp.

virtual VectorSpace Teko::DiagnosticLinearOp::domain ( ) const
inlinevirtual

Domain space of this operator.

Implements Teko::ImplicitLinearOp.

Definition at line 100 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 105 of file Teko_DiagnosticLinearOp.cpp.


The documentation for this class was generated from the following files: