ROL
Public Member Functions | Public Attributes | Protected Attributes | Private Attributes | List of all members
ROL::Secant< Real > Class Template Referenceabstract

Provides interface for and implements limited-memory secant operators. More...

#include <ROL_Secant.hpp>

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

Public Member Functions

virtual ~Secant ()
 
 useDefaultScaling_ (useDefaultScaling)
 
 Bscaling_ (Bscaling)
 
 isInitialized_ (false)
 
Ptr< SecantState< Real > > & get_state ()
 
const Ptr< SecantState< Real > > & get_state () const
 
virtual void updateStorage (const Vector< Real > &x, const Vector< Real > &grad, const Vector< Real > &gp, const Vector< Real > &s, const Real snorm, const int iter)
 
virtual void applyH (Vector< Real > &Hv, const Vector< Real > &v) const =0
 
virtual void applyH0 (Vector< Real > &Hv, const Vector< Real > &v) const
 
virtual void applyB (Vector< Real > &Bv, const Vector< Real > &v) const =0
 
virtual void applyB0 (Vector< Real > &Bv, const Vector< Real > &v) const
 
void test (std::ostream &stream=std::cout) const
 
void apply (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
 Apply linear operator. More...
 
void applyInverse (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const
 Apply inverse of linear operator. More...
 
- 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...
 

Public Attributes

 __pad0__: state_(makePtr<SecantState<Real>>(M
 
 mode
 

Protected Attributes

const Ptr< SecantState< Real > > state_
 
Ptr< Vector< Real > > y_
 
bool useDefaultScaling_
 
Real Bscaling_
 

Private Attributes

bool isInitialized_
 

Detailed Description

template<class Real>
class ROL::Secant< Real >

Provides interface for and implements limited-memory secant operators.

Definition at line 45 of file ROL_Secant.hpp.

Constructor & Destructor Documentation

template<class Real>
virtual ROL::Secant< Real >::~Secant ( )
inlinevirtual

Definition at line 59 of file ROL_Secant.hpp.

Member Function Documentation

template<class Real>
ROL::Secant< Real >::useDefaultScaling_ ( useDefaultScaling  )
template<class Real>
ROL::Secant< Real >::Bscaling_ ( Bscaling  )
template<class Real>
ROL::Secant< Real >::isInitialized_ ( false  )
inline

Definition at line 65 of file ROL_Secant.hpp.

template<class Real>
Ptr<SecantState<Real> >& ROL::Secant< Real >::get_state ( )
inline

Definition at line 67 of file ROL_Secant.hpp.

References ROL::Secant< Real >::state_.

template<class Real>
const Ptr<SecantState<Real> >& ROL::Secant< Real >::get_state ( ) const
inline

Definition at line 68 of file ROL_Secant.hpp.

References ROL::Secant< Real >::state_.

template<class Real>
virtual void ROL::Secant< Real >::updateStorage ( const Vector< Real > &  x,
const Vector< Real > &  grad,
const Vector< Real > &  gp,
const Vector< Real > &  s,
const Real  snorm,
const int  iter 
)
inlinevirtual
template<class Real>
virtual void ROL::Secant< Real >::applyH ( Vector< Real > &  Hv,
const Vector< Real > &  v 
) const
pure virtual
template<class Real>
virtual void ROL::Secant< Real >::applyH0 ( Vector< Real > &  Hv,
const Vector< Real > &  v 
) const
inlinevirtual
template<class Real>
virtual void ROL::Secant< Real >::applyB ( Vector< Real > &  Bv,
const Vector< Real > &  v 
) const
pure virtual
template<class Real>
virtual void ROL::Secant< Real >::applyB0 ( Vector< Real > &  Bv,
const Vector< Real > &  v 
) const
inlinevirtual
template<class Real>
void ROL::Secant< Real >::test ( std::ostream &  stream = std::cout) const
inline
template<class Real>
void ROL::Secant< Real >::apply ( Vector< Real > &  Hv,
const Vector< Real > &  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 164 of file ROL_Secant.hpp.

References ROL::Secant< Real >::applyB().

template<class Real>
void ROL::Secant< Real >::applyInverse ( Vector< Real > &  Hv,
const Vector< Real > &  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 168 of file ROL_Secant.hpp.

References ROL::Secant< Real >::applyH().

Member Data Documentation

template<class Real>
const Ptr<SecantState<Real> > ROL::Secant< Real >::state_
protected
template<class Real>
Ptr<Vector<Real> > ROL::Secant< Real >::y_
protected
template<class Real>
bool ROL::Secant< Real >::useDefaultScaling_
protected
template<class Real>
Real ROL::Secant< Real >::Bscaling_
protected
template<class Real>
bool ROL::Secant< Real >::isInitialized_
private

Definition at line 55 of file ROL_Secant.hpp.

Referenced by ROL::Secant< Real >::test(), and ROL::Secant< Real >::updateStorage().

template<class Real>
ROL::Secant< Real >::__pad0__

Definition at line 63 of file ROL_Secant.hpp.

template<class Real>
ROL::Secant< Real >::mode

Definition at line 63 of file ROL_Secant.hpp.


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