ROL
Public Member Functions | Private Types | Private Attributes | List of all members
ROL::BlockOperator2< Real > Class Template Reference

Provides the interface to apply a 2x2 block operator to a partitioned vector. More...

#include <ROL_BlockOperator2.hpp>

+ Inheritance diagram for ROL::BlockOperator2< Real >:

Public Member Functions

 BlockOperator2 (ROL::Ptr< OP > &a11, ROL::Ptr< OP > &a12, ROL::Ptr< OP > &a21, ROL::Ptr< OP > &a22)
 
void apply (V &Hv, const V &v, Real &tol) const
 Apply linear operator. More...
 
void applyInverse (V &Hv, const V &v, Real &tol) const
 Apply inverse of linear operator. More...
 
ROL::Ptr< LinearOperator< Real > > getOperator (int row, int col) const
 
- Public Member Functions inherited from ROL::LinearOperator< Real >
virtual ~LinearOperator ()
 
virtual void update (const Vector< Real > &x, bool flag=true, int iter=-1)
 Update linear operator. More...
 
virtual void applyAdjoint (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
 Apply adjoint of linear operator. More...
 
virtual void applyAdjointInverse (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
 Apply adjoint of the inverse linear operator. More...
 

Private Types

typedef Vector< Real > V
 
typedef PartitionedVector< Real > PV
 
typedef LinearOperator< Real > OP
 

Private Attributes

ROL::Ptr< OPbkop_
 
ROL::Ptr< std::vector
< ROL::Ptr< OP > > > 
ops_
 

Detailed Description

template<class Real>
class ROL::BlockOperator2< Real >

Provides the interface to apply a 2x2 block operator to a partitioned vector.


Definition at line 60 of file ROL_BlockOperator2.hpp.

Member Typedef Documentation

template<class Real>
typedef Vector<Real> ROL::BlockOperator2< Real >::V
private

Definition at line 62 of file ROL_BlockOperator2.hpp.

template<class Real>
typedef PartitionedVector<Real> ROL::BlockOperator2< Real >::PV
private

Definition at line 63 of file ROL_BlockOperator2.hpp.

template<class Real>
typedef LinearOperator<Real> ROL::BlockOperator2< Real >::OP
private

Definition at line 64 of file ROL_BlockOperator2.hpp.

Constructor & Destructor Documentation

template<class Real>
ROL::BlockOperator2< Real >::BlockOperator2 ( ROL::Ptr< OP > &  a11,
ROL::Ptr< OP > &  a12,
ROL::Ptr< OP > &  a21,
ROL::Ptr< OP > &  a22 
)
inline

Member Function Documentation

template<class Real>
void ROL::BlockOperator2< Real >::apply ( V Hv,
const V v,
Real &  tol 
) const
inlinevirtual

Apply linear operator.

This function applies the linear operator to a vector.

Parameters
[out]Hvis the output vector.
[in]vis the input vector.
[in]tolis a tolerance for inexact linear operator application.

Implements ROL::LinearOperator< Real >.

Definition at line 91 of file ROL_BlockOperator2.hpp.

References ROL::BlockOperator2< Real >::bkop_.

Referenced by main().

template<class Real>
void ROL::BlockOperator2< Real >::applyInverse ( V Hv,
const V v,
Real &  tol 
) const
inlinevirtual

Apply inverse of linear operator.

This function applies the inverse of linear operator to a vector.

Parameters
[out]Hvis the output vector.
[in]vis the input vector.
[in]tolis a tolerance for inexact linear operator application.

Reimplemented from ROL::LinearOperator< Real >.

Definition at line 96 of file ROL_BlockOperator2.hpp.

template<class Real>
ROL::Ptr<LinearOperator<Real> > ROL::BlockOperator2< Real >::getOperator ( int  row,
int  col 
) const
inline

Definition at line 104 of file ROL_BlockOperator2.hpp.

References ROL::BlockOperator2< Real >::ops_.

Member Data Documentation

template<class Real>
ROL::Ptr<OP> ROL::BlockOperator2< Real >::bkop_
private
template<class Real>
ROL::Ptr<std::vector<ROL::Ptr<OP> > > ROL::BlockOperator2< Real >::ops_
private

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