ROL
|
Public Member Functions | |
TridiagonalToeplitzOperator (Real &a, Real &b, Real &c) | |
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... | |
TridiagonalToeplitzOperator (Real &a, Real &b, Real &c) | |
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... | |
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 std::vector< Real > | vector |
typedef ROL::Vector< Real > | V |
typedef ROL::StdVector< Real > | SV |
typedef vector::size_type | uint |
typedef std::vector< Real > | vector |
typedef ROL::Vector< Real > | V |
typedef ROL::StdVector< Real > | SV |
typedef vector::size_type | uint |
Private Attributes | |
Real | a_ |
Real | b_ |
Real | c_ |
ROL::LAPACK< int, Real > | lapack_ |
Definition at line 38 of file step/krylov/test_01.cpp.
|
private |
Definition at line 40 of file step/krylov/test_01.cpp.
|
private |
Definition at line 41 of file step/krylov/test_01.cpp.
|
private |
Definition at line 42 of file step/krylov/test_01.cpp.
|
private |
Definition at line 44 of file step/krylov/test_01.cpp.
|
private |
Definition at line 39 of file step/krylov/test_03.cpp.
|
private |
Definition at line 40 of file step/krylov/test_03.cpp.
|
private |
Definition at line 41 of file step/krylov/test_03.cpp.
|
private |
Definition at line 43 of file step/krylov/test_03.cpp.
|
inline |
Definition at line 56 of file step/krylov/test_01.cpp.
|
inline |
Definition at line 55 of file step/krylov/test_03.cpp.
|
inlinevirtual |
Apply linear operator.
This function applies the linear operator to a vector.
[out] | Hv | is the output vector. |
[in] | v | is the input vector. |
[in] | tol | is a tolerance for inexact linear operator application. |
Implements ROL::LinearOperator< Real >.
Definition at line 59 of file step/krylov/test_01.cpp.
References TridiagonalToeplitzOperator< Real >::a_, TridiagonalToeplitzOperator< Real >::b_, TridiagonalToeplitzOperator< Real >::c_, and ROL::StdVector< Real, Element >::getVector().
Referenced by main().
|
inlinevirtual |
Apply inverse of linear operator.
This function applies the inverse of linear operator to a vector.
[out] | Hv | is the output vector. |
[in] | v | is the input vector. |
[in] | tol | is a tolerance for inexact linear operator application. |
Reimplemented from ROL::LinearOperator< Real >.
Definition at line 82 of file step/krylov/test_01.cpp.
References TridiagonalToeplitzOperator< Real >::a_, TridiagonalToeplitzOperator< Real >::b_, TridiagonalToeplitzOperator< Real >::c_, ROL::StdVector< Real, Element >::getVector(), TridiagonalToeplitzOperator< Real >::lapack_, and ROL::Vector< Real >::set().
Referenced by main().
|
inlinevirtual |
Apply linear operator.
This function applies the linear operator to a vector.
[out] | Hv | is the output vector. |
[in] | v | is the input vector. |
[in] | tol | is a tolerance for inexact linear operator application. |
Implements ROL::LinearOperator< Real >.
Definition at line 58 of file step/krylov/test_03.cpp.
References TridiagonalToeplitzOperator< Real >::a_, TridiagonalToeplitzOperator< Real >::b_, TridiagonalToeplitzOperator< Real >::c_, and ROL::StdVector< Real, Element >::getVector().
|
inlinevirtual |
Apply inverse of linear operator.
This function applies the inverse of linear operator to a vector.
[out] | Hv | is the output vector. |
[in] | v | is the input vector. |
[in] | tol | is a tolerance for inexact linear operator application. |
Reimplemented from ROL::LinearOperator< Real >.
Definition at line 79 of file step/krylov/test_03.cpp.
References TridiagonalToeplitzOperator< Real >::a_, TridiagonalToeplitzOperator< Real >::b_, TridiagonalToeplitzOperator< Real >::c_, ROL::StdVector< Real, Element >::getVector(), TridiagonalToeplitzOperator< Real >::lapack_, and ROL::Vector< Real >::set().
|
private |
Definition at line 48 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::apply(), and TridiagonalToeplitzOperator< Real >::applyInverse().
|
private |
Definition at line 49 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::apply(), and TridiagonalToeplitzOperator< Real >::applyInverse().
|
private |
Definition at line 50 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::apply(), and TridiagonalToeplitzOperator< Real >::applyInverse().
|
private |
Definition at line 52 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::applyInverse().