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>
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 31 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 33 of file ROL_StdLinearOperator.hpp.
|
private |
Definition at line 35 of file ROL_StdLinearOperator.hpp.
|
inline |
Definition at line 50 of file ROL_StdLinearOperator.hpp.
|
inline |
Definition at line 52 of file ROL_StdLinearOperator.hpp.
References ROL::StdLinearOperator< Real >::A_, ROL::StdLinearOperator< Real >::ipiv_, and ROL::StdLinearOperator< Real >::N_.
|
inlinevirtual |
Definition at line 62 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 65 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 70 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 74 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 81 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 92 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 99 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 112 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 119 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 149 of file ROL_StdLinearOperator.hpp.
|
inlinevirtual |
Definition at line 156 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 39 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 40 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 41 of file ROL_StdLinearOperator.hpp.
|
mutableprivate |
Definition at line 43 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::applyAdjointInverse(), and ROL::StdLinearOperator< Real >::applyInverse().
|
mutableprivate |
Definition at line 44 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::applyAdjointInverse(), ROL::StdLinearOperator< Real >::applyInverse(), and ROL::StdLinearOperator< Real >::StdLinearOperator().
|
private |
Definition at line 46 of file ROL_StdLinearOperator.hpp.
Referenced by ROL::StdLinearOperator< Real >::applyAdjointInverse(), and ROL::StdLinearOperator< Real >::applyInverse().