|
ROL
|
Provides the std::vector implementation of the ROL::Vector interface. More...
#include <ROL_ProbabilityVector.hpp>
Inheritance diagram for ROL::ProbabilityVector< Real >:Public Member Functions | |
| ProbabilityVector (const ROL::Ptr< std::vector< Real > > &vec, const ROL::Ptr< BatchManager< Real > > &bman) | |
| const Real | getProbability (const int i) const |
| void | setProbability (const int i, const Real wt) |
| int | getNumMyAtoms (void) const |
Public Member Functions inherited from ROL::BatchStdVector< Real > | |
| BatchStdVector (const ROL::Ptr< std::vector< Real > > &vec, const ROL::Ptr< BatchManager< Real > > &bman) | |
| virtual Real | dot (const Vector< Real > &x) const |
| Compute \( \langle y,x \rangle \) where \(y = \mathtt{*this}\). More... | |
| virtual ROL::Ptr< Vector< Real > > | clone (void) const |
| Clone to make a new (uninitialized) vector. More... | |
| int | dimension (void) const |
| Return dimension of the vector space. More... | |
| Real | reduce (const Elementwise::ReductionOp< Real > &r) const |
Public Member Functions inherited from ROL::StdVector< Real > | |
| StdVector (const Ptr< std::vector< Real > > &std_vec) | |
| StdVector (const int dim, const Realval=0.0) | |
| void | set (const Vector< Real > &x) |
| Set \(y \leftarrow x\) where \(y = \mathtt{*this}\). More... | |
| void | plus (const Vector< Real > &x) |
| Compute \(y \leftarrow y + x\), 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... | |
| void | scale (const Real alpha) |
| Compute \(y \leftarrow \alpha y\) where \(y = \mathtt{*this}\). More... | |
| Real | norm () const |
| Returns \( \| y \| \) where \(y = \mathtt{*this}\). More... | |
| Ptr< const std::vector< Real > > | getVector () const |
| Ptr< std::vector< Real > > | getVector () |
| Ptr< Vector< Real > > | basis (const int i) const |
| Return i-th basis vector. More... | |
| int | dimension () const |
| Return dimension of the vector space. More... | |
| void | applyUnary (const Elementwise::UnaryFunction< Real > &f) |
| void | applyBinary (const Elementwise::BinaryFunction< Real > &f, const Vector< Real > &x) |
| Real | reduce (const Elementwise::ReductionOp< Real > &r) const |
| void | setScalar (const Real C) |
| Set \(y \leftarrow C\) where \(C\in\mathbb{R}\). More... | |
| void | randomize (const Real l=0.0, const Real u=1.0) |
| Set vector to be uniform random between [l,u]. More... | |
| virtual void | print (std::ostream &outStream) const |
Public Member Functions inherited from ROL::Vector< Real > | |
| virtual | ~Vector () |
| virtual void | zero () |
| Set to zero vector. More... | |
| virtual const Vector & | dual () 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... | |
| 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... | |
Private Types | |
| typedef std::vector< Real > ::size_type | uint |
Additional Inherited Members | |
Protected Member Functions inherited from ROL::BatchStdVector< Real > | |
| const ROL::Ptr< BatchManager < Real > > | getBatchManager (void) const |
Provides the std::vector implementation of the ROL::Vector interface.
Definition at line 63 of file ROL_ProbabilityVector.hpp.
|
private |
Definition at line 64 of file ROL_ProbabilityVector.hpp.
|
inline |
Definition at line 66 of file ROL_ProbabilityVector.hpp.
|
inline |
Definition at line 70 of file ROL_ProbabilityVector.hpp.
References ROL::StdVector< Real, Element >::getVector().
Referenced by ROL::CDFObjective< Real >::gradientCDF(), ROL::CDFObjective< Real >::hessVecCDF(), ROL::MomentObjective< Real >::momentGradient(), ROL::MomentObjective< Real >::momentHessVec(), ROL::MomentObjective< Real >::momentValue(), ROL::SROMGenerator< Real >::pruneSamples(), and ROL::CDFObjective< Real >::valueCDF().
|
inline |
Definition at line 78 of file ROL_ProbabilityVector.hpp.
References ROL::StdVector< Real, Element >::getVector().
|
inline |
Definition at line 86 of file ROL_ProbabilityVector.hpp.
References ROL::StdVector< Real, Element >::getVector().
Referenced by ROL::CDFObjective< Real >::gradientCDF(), ROL::CDFObjective< Real >::hessVecCDF(), ROL::MomentObjective< Real >::momentGradient(), ROL::MomentObjective< Real >::momentHessVec(), ROL::MomentObjective< Real >::momentValue(), and ROL::CDFObjective< Real >::valueCDF().
1.8.5