|
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 (ROL::Ptr< 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 | |
| typedef StdVector< Real > | SV |
| typedef std::vector< Real > | vector |
Private Attributes | |
| ROL::Ptr< std::vector< Real > > | A_ |
| int | N_ |
| int | INFO_ |
| vector | PLU_ |
| std::vector< int > | ipiv_ |
| ROL::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 65 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 67 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 69 of file ROL_StdLinearOperator.hpp.
|
inline |
Definition at line 84 of file ROL_StdLinearOperator.hpp.
|
inline |
Definition at line 86 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, ROL::StdLinearOperator< Real >::ipiv_, and ROL::StdLinearOperator< Real >::N_.
|
inlinevirtual |
Definition at line 96 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 99 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 104 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 108 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 115 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, and 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 126 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 133 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, and 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 146 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 153 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, ROL::StdLinearOperator< Real >::ipiv_, ROL::StdLinearOperator< Real >::lapack_, ROL::StdLinearOperator< Real >::N_, and ROL::StdLinearOperator< Real >::PLU_.
|
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 183 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 190 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, ROL::StdLinearOperator< Real >::ipiv_, ROL::StdLinearOperator< Real >::lapack_, ROL::StdLinearOperator< Real >::N_, and ROL::StdLinearOperator< Real >::PLU_.
|
private |
Definition at line 73 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::apply(), ROL::StdLinearOperator< Real >::applyAdjoint(), ROL::StdLinearOperator< Real >::applyAdjointInverse(), ROL::StdLinearOperator< Real >::applyInverse(), and ROL::StdLinearOperator< Real >::StdLinearOperator().
|
private |
Definition at line 74 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::apply(), ROL::StdLinearOperator< Real >::applyAdjoint(), ROL::StdLinearOperator< Real >::applyAdjointInverse(), ROL::StdLinearOperator< Real >::applyInverse(), and ROL::StdLinearOperator< Real >::StdLinearOperator().
|
private |
Definition at line 75 of file ROL_StdLinearOperator.hpp.
|
mutableprivate |
Definition at line 77 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::applyAdjointInverse(), and ROL::StdLinearOperator< Real >::applyInverse().
|
mutableprivate |
Definition at line 78 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::applyAdjointInverse(), ROL::StdLinearOperator< Real >::applyInverse(), and ROL::StdLinearOperator< Real >::StdLinearOperator().
|
private |
Definition at line 80 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::applyAdjointInverse(), and ROL::StdLinearOperator< Real >::applyInverse().
1.8.5