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 72 of file step/krylov/test_01.cpp.
|
private |
Definition at line 74 of file step/krylov/test_01.cpp.
|
private |
Definition at line 75 of file step/krylov/test_01.cpp.
|
private |
Definition at line 76 of file step/krylov/test_01.cpp.
|
private |
Definition at line 78 of file step/krylov/test_01.cpp.
|
private |
Definition at line 73 of file step/krylov/test_03.cpp.
|
private |
Definition at line 74 of file step/krylov/test_03.cpp.
|
private |
Definition at line 75 of file step/krylov/test_03.cpp.
|
private |
Definition at line 77 of file step/krylov/test_03.cpp.
|
inline |
Definition at line 90 of file step/krylov/test_01.cpp.
|
inline |
Definition at line 89 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 93 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 116 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 92 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 113 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 82 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::apply(), and TridiagonalToeplitzOperator< Real >::applyInverse().
|
private |
Definition at line 83 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::apply(), and TridiagonalToeplitzOperator< Real >::applyInverse().
|
private |
Definition at line 84 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::apply(), and TridiagonalToeplitzOperator< Real >::applyInverse().
|
private |
Definition at line 86 of file step/krylov/test_01.cpp.
Referenced by TridiagonalToeplitzOperator< Real >::applyInverse().