|
ROL
|
Provides the std::vector implementation to apply a linear operator, which is a std::vector representation of column-stacked matrix. More...
#include <ROL_StdLinearOperator.hpp>
Inheritance diagram for ROL::StdLinearOperator< Real >:Public Member Functions | |
| StdLinearOperator () | |
| StdLinearOperator (RCP< std::vector< Real > > &A) | |
| virtual | ~StdLinearOperator () |
| void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| Update linear operator. More... | |
| virtual void | update (const std::vector< Real > &x, bool flag=true, int iter=-1) |
| void | apply (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Apply linear operator. More... | |
| virtual void | apply (std::vector< Real > &Hv, const std::vector< Real > &v, Real &tol) const |
| void | applyAdjoint (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Apply adjoint of linear operator. More... | |
| virtual void | applyAdjoint (std::vector< Real > &Hv, const std::vector< Real > &v, Real &tol) const |
| void | applyInverse (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Apply inverse of linear operator. More... | |
| virtual void | applyInverse (std::vector< Real > &Hv, const std::vector< Real > &v, Real &tol) const |
| void | applyAdjointInverse (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Apply adjoint of the inverse linear operator. More... | |
| virtual void | applyAdjointInverse (std::vector< Real > &Hv, const std::vector< Real > &v, Real &tol) const |
Public Member Functions inherited from ROL::LinearOperator< Real > | |
| virtual | ~LinearOperator () |
Private Types | |
| template<typename T > | |
| using | RCP = Teuchos::RCP< T > |
| typedef StdVector< Real > | SV |
| typedef std::vector< Real > | vector |
Private Attributes | |
| RCP< std::vector< Real > > | A_ |
| int | N_ |
| int | INFO_ |
| vector | PLU_ |
| std::vector< int > | ipiv_ |
| Teuchos::BLAS< int, Real > | blas_ |
| Teuchos::LAPACK< int, Real > | lapack_ |
Provides the std::vector implementation to apply a linear operator, which is a std::vector representation of column-stacked matrix.
Definition at line 66 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 68 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 70 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 72 of file ROL_StdLinearOperator.hpp.
|
inline |
Definition at line 88 of file ROL_StdLinearOperator.hpp.
|
inline |
Definition at line 90 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 100 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Update linear operator.
This function updates the linear operator at new iterations.
| [in] | x | is the new iterate. |
| [in] | flag | is true if the iterate has changed. |
| [in] | iter | is the outer algorithm iterations count. |
Reimplemented from ROL::LinearOperator< Real >.
Definition at line 103 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 108 of file ROL_StdLinearOperator.hpp.
|
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 112 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 119 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::N_.
|
inlinevirtual |
Apply adjoint of linear operator.
This function applies the adjoint of a linear operator to a vector. Default behavior assumes operator is self-adjoint.
| [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 127 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 134 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::N_.
|
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 144 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 151 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, and ROL::StdLinearOperator< Real >::N_.
|
inlinevirtual |
Apply adjoint of the inverse linear operator.
This function applies the adjoint of the inverse linear operator to a vector. Default behavior assumes operator is self-adjoint.
| [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 181 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 188 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, and ROL::StdLinearOperator< Real >::N_.
|
private |
Definition at line 76 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::applyAdjointInverse(), and ROL::StdLinearOperator< Real >::applyInverse().
|
private |
Definition at line 77 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::apply(), ROL::StdLinearOperator< Real >::applyAdjoint(), ROL::StdLinearOperator< Real >::applyAdjointInverse(), and ROL::StdLinearOperator< Real >::applyInverse().
|
private |
Definition at line 78 of file ROL_StdLinearOperator.hpp.
|
mutableprivate |
Definition at line 80 of file ROL_StdLinearOperator.hpp.
|
mutableprivate |
Definition at line 81 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 83 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 84 of file ROL_StdLinearOperator.hpp.
1.8.13