|
ROL
|
#include <ROL_CVaRVector.hpp>
Inheritance diagram for ROL::CVaRVector< Real >:Public Member Functions | |
| CVaRVector (const Real var, const Teuchos::RCP< Vector< Real > > &vec) | |
| void | plus (const Vector< Real > &x) |
| Compute \(y \leftarrow y + x\), where \(y = \mathtt{*this}\). More... | |
| void | scale (const Real alpha) |
| Compute \(y \leftarrow \alpha y\) where \(y = \mathtt{*this}\). More... | |
| void | axpy (const Real alpha, const Vector< Real > &x) |
| Compute \(y \leftarrow \alpha x + y\) where \(y = \mathtt{*this}\). More... | |
| Real | dot (const Vector< Real > &x) const |
| Compute \( \langle y,x \rangle \) where \(y = \mathtt{*this}\). More... | |
| Real | norm () const |
| Returns \( \| y \| \) where \(y = \mathtt{*this}\). More... | |
| const Real | getVaR () const |
| Teuchos::RCP< const Vector< Real > > | getVector () const |
| Teuchos::RCP< Vector< Real > > | clone () const |
| Clone to make a new (uninitialized) vector. More... | |
| const Vector< Real > & | dual (void) const |
| Return dual representation of \(\mathtt{*this}\), for example, the result of applying a Riesz map, or change of basis, or change of memory layout. More... | |
| void | setVaR (const Real var) |
| void | setVector (const Vector< Real > &vec) |
Public Member Functions inherited from ROL::Vector< Real > | |
| virtual | ~Vector () |
| virtual void | zero () |
| Set to zero vector. More... | |
| virtual Teuchos::RCP< Vector > | basis (const int i) const |
| Return i-th basis vector. More... | |
| virtual int | dimension () const |
| Return dimension of the vector space. More... | |
| virtual void | set (const Vector &x) |
| Set \(y \leftarrow x\) where \(y = \mathtt{*this}\). More... | |
| virtual void | applyUnary (const Elementwise::UnaryFunction< Real > &f) |
| virtual void | applyBinary (const Elementwise::BinaryFunction< Real > &f, const Vector &x) |
| virtual Real | reduce (const Elementwise::ReductionOp< Real > &r) const |
| virtual std::vector< Real > | checkVector (const Vector< Real > &x, const Vector< Real > &y, const bool printToStream=true, std::ostream &outStream=std::cout) const |
| Verify vector-space methods. More... | |
Protected Attributes | |
| Real | var_ |
| Teuchos::RCP< Vector< Real > > | vec_ |
| Teuchos::RCP< Vector< Real > > | dual_vec1_ |
| Teuchos::RCP< CVaRVector< Real > > | dual_vec_ |
Definition at line 52 of file ROL_CVaRVector.hpp.
|
inline |
Definition at line 61 of file ROL_CVaRVector.hpp.
Referenced by ROL::CVaRVector< Real >::clone().
|
inlinevirtual |
Compute \(y \leftarrow y + x\), where \(y = \mathtt{*this}\).
| [in] | x | is the vector to be added to \(\mathtt{*this}\). |
On return \(\mathtt{*this} = \mathtt{*this} + x\).
Implements ROL::Vector< Real >.
Definition at line 66 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::getVaR(), and ROL::CVaRVector< Real >::getVector().
|
inlinevirtual |
Compute \(y \leftarrow \alpha y\) where \(y = \mathtt{*this}\).
| [in] | alpha | is the scaling of \(\mathtt{*this}\). |
On return \(\mathtt{*this} = \alpha (\mathtt{*this}) \).
Implements ROL::Vector< Real >.
Definition at line 73 of file ROL_CVaRVector.hpp.
|
inlinevirtual |
Compute \(y \leftarrow \alpha x + y\) where \(y = \mathtt{*this}\).
| [in] | alpha | is the scaling of x. |
| [in] | x | is a vector. |
On return \(\mathtt{*this} = \mathtt{*this} + \alpha x \). Uses clone, set, scale and plus for the computation. Please overload if a more efficient implementation is needed.
Reimplemented from ROL::Vector< Real >.
Definition at line 78 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::getVaR(), and ROL::CVaRVector< Real >::getVector().
|
inlinevirtual |
Compute \( \langle y,x \rangle \) where \(y = \mathtt{*this}\).
| [in] | x | is the vector that forms the dot product with \(\mathtt{*this}\). |
Implements ROL::Vector< Real >.
Definition at line 85 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::getVaR(), and ROL::CVaRVector< Real >::getVector().
Referenced by ROL::CVaRVector< Real >::norm().
|
inlinevirtual |
Returns \( \| y \| \) where \(y = \mathtt{*this}\).
Implements ROL::Vector< Real >.
Definition at line 91 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::dot().
|
inline |
Definition at line 95 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::var_.
Referenced by ROL::CVaRVector< Real >::axpy(), ROL::CVaRVector< Real >::dot(), ROL::BPOEBoundConstraint< Real >::isFeasible(), main(), ROL::CVaRVector< Real >::plus(), ROL::BPOEBoundConstraint< Real >::pruneActive(), ROL::BPOEBoundConstraint< Real >::pruneLowerActive(), ROL::CVaR< Real >::reset(), ROL::HMCR< Real >::reset(), ROL::ExpectationQuad< Real >::reset(), ROL::BPOEObjective< Real >::unwrap_const_CVaR_vector(), and ROL::HMCRObjective< Real >::unwrap_const_CVaR_vector().
|
inline |
Definition at line 99 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::vec_.
Referenced by ROL::CVaRVector< Real >::axpy(), ROL::CVaRVector< Real >::dot(), ROL::CVaRVector< Real >::plus(), ROL::CVaR< Real >::reset(), ROL::HMCR< Real >::reset(), ROL::ExpectationQuad< Real >::reset(), ROL::BPOEObjective< Real >::unwrap_const_CVaR_vector(), and ROL::HMCRObjective< Real >::unwrap_const_CVaR_vector().
|
inlinevirtual |
Clone to make a new (uninitialized) vector.
Provides the means of allocating temporary memory in ROL.
Implements ROL::Vector< Real >.
Definition at line 103 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::CVaRVector().
Referenced by main().
|
inlinevirtual |
Return dual representation of \(\mathtt{*this}\), for example, the result of applying a Riesz map, or change of basis, or change of memory layout.
By default, returns the current object. Please overload if you need a dual representation.
Reimplemented from ROL::Vector< Real >.
Definition at line 110 of file ROL_CVaRVector.hpp.
References ROL::CVaRVector< Real >::dual_vec_.
|
inline |
Definition at line 116 of file ROL_CVaRVector.hpp.
Referenced by ROL::CVaR< Real >::getGradient(), ROL::HMCR< Real >::getGradient(), ROL::ExpectationQuad< Real >::getGradient(), ROL::CVaR< Real >::getHessVec(), ROL::HMCR< Real >::getHessVec(), ROL::ExpectationQuad< Real >::getHessVec(), ROL::BPOEObjective< Real >::gradient(), ROL::HMCRObjective< Real >::gradient(), ROL::BPOEObjective< Real >::hessVec(), and ROL::HMCRObjective< Real >::hessVec().
|
inline |
Definition at line 120 of file ROL_CVaRVector.hpp.
Referenced by ROL::CVaR< Real >::getGradient(), ROL::HMCR< Real >::getGradient(), ROL::ExpectationQuad< Real >::getGradient(), ROL::CVaR< Real >::getHessVec(), ROL::HMCR< Real >::getHessVec(), ROL::ExpectationQuad< Real >::getHessVec(), ROL::BPOEObjective< Real >::gradient(), ROL::HMCRObjective< Real >::gradient(), ROL::BPOEObjective< Real >::hessVec(), and ROL::HMCRObjective< Real >::hessVec().
|
protected |
Definition at line 54 of file ROL_CVaRVector.hpp.
Referenced by ROL::CVaRVector< Real >::getVaR().
|
protected |
Definition at line 55 of file ROL_CVaRVector.hpp.
Referenced by ROL::CVaRVector< Real >::getVector().
|
mutableprotected |
Definition at line 57 of file ROL_CVaRVector.hpp.
|
mutableprotected |
Definition at line 58 of file ROL_CVaRVector.hpp.
Referenced by ROL::CVaRVector< Real >::dual().
1.8.11