|
ROL
|
Provides the interface to apply a diagonal operator which acts like elementwise multiplication when apply() is used and elementwise division when applyInverse() is used. More...
#include <ROL_DiagonalOperator.hpp>
Public Member Functions | |
| DiagonalOperator (const Vector< Real > &diag) | |
| void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| void | apply (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| void | applyInverse (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Public Member Functions inherited from ROL::ROL::LinearOperator< Real > | |
| virtual | ~LinearOperator () |
| virtual void | update (const Vector< Real > &x, bool flag=true, int iter=-1) |
| Update linear operator. | |
| virtual void | apply (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const =0 |
| Apply linear operator. | |
| virtual void | applyInverse (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Apply inverse of linear operator. | |
| virtual void | applyAdjoint (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Apply adjoint of linear operator. | |
| virtual void | applyAdjointInverse (Vector< Real > &Hv, const Vector< Real > &v, Real &tol) const |
| Apply adjoint of the inverse linear operator. | |
Private Attributes | |
| ROL::Ptr< Vector< Real > > | diag_ |
| const Elementwise::Multiply< Real > | mult_ |
| const Elementwise::Divide< Real > | div_ |
Provides the interface to apply a diagonal operator which acts like elementwise multiplication when apply() is used and elementwise division when applyInverse() is used.
Definition at line 28 of file ROL_DiagonalOperator.hpp.
|
inline |
Definition at line 39 of file ROL_DiagonalOperator.hpp.
References diag_.
|
inline |
Definition at line 43 of file ROL_DiagonalOperator.hpp.
References diag_.
|
inline |
Definition at line 47 of file ROL_DiagonalOperator.hpp.
References ROL::Vector< Real >::applyBinary(), diag_, mult_, and ROL::Vector< Real >::set().
|
inline |
Definition at line 52 of file ROL_DiagonalOperator.hpp.
References ROL::Vector< Real >::applyBinary(), diag_, div_, and ROL::Vector< Real >::set().
|
private |
Definition at line 32 of file ROL_DiagonalOperator.hpp.
Referenced by apply(), applyInverse(), DiagonalOperator(), and update().
|
private |
Definition at line 34 of file ROL_DiagonalOperator.hpp.
Referenced by apply().
|
private |
Definition at line 35 of file ROL_DiagonalOperator.hpp.
Referenced by applyInverse().