|
ROL
|
Provides the implementation of the ROL::Vector interface that handles scalings in the inner product. A more generic version of ROL::PrimalScaledStdVector. More...
#include <ROL_ScaledVector.hpp>
Public Member Functions | |
| PrimalScaledVector (const Ptr< V > &vec, const Ptr< V > &scaling_vec) | |
| virtual | ~PrimalScaledVector () |
| virtual Real | dot (const V &x) const override |
| virtual Ptr< V > | clone () const override |
| virtual Ptr< V > | basis (const int i) const override |
| virtual void const V & | dual () const override |
| const Ptr< V > & | getScalingVector () |
| const Ptr< const V > & | getScalingVector () const |
| void | setScalingVector (const Ptr< const V & > &scaling_vec) const |
| WrappedVector (const Ptr< V > &vec) | |
| virtual | ~WrappedVector () |
| virtual void | plus (const V &x) override |
| virtual void | scale (const Real alpha) override |
| virtual Real | dot (const V &x) const override |
| virtual Real | norm () const override |
| virtual Ptr< V > | clone () const override |
| virtual void | axpy (const Real alpha, const V &x) override |
| virtual Ptr< V > | basis (const int i) const override |
| virtual int | dimension () const override |
| virtual void | set (const V &x) override |
| virtual void const V & | dual () const override |
| virtual Real | apply (const V &x) const override |
| virtual void | applyUnary (const Elementwise::UnaryFunction< Real > &f) override |
| virtual void | applyBinary (const Elementwise::BinaryFunction< Real > &f, const V &x) override |
| virtual Real | reduce (const Elementwise::ReductionOp< Real > &r) const override |
| virtual void | setScalar (const Real C) override |
| virtual void | randomize (const Real l=0.0, const Real u=1.0) override |
| virtual void | print (std::ostream &os) override |
| const Ptr< V > & | getVector () |
| const Ptr< const V > & | getVector () const |
| virtual void | setVector (const Ptr< const V > &vec) const |
Protected Member Functions | |
| VectorWorkspace< Real > & | getWorkspace () const |
| void | multiply_scaling (const Ptr< V > &y) const |
Private Types | |
| using | V = Vector<Real> |
| using | VPrim = PrimalScaledVector<Real> |
| using | VDual = DualScaledVector<Real> |
| using | V = Vector<Real> |
| using | VPrim = PrimalScaledVector<Real> |
| using | VDual = DualScaledVector<Real> |
Private Attributes | |
| Ptv< V > | scaling_vec_ |
| VectorWorkspace< Real > | workspace_ |
| Elementwise::Multiply< Real > | mult_ |
| Ptr< V > | vec_ |
Provides the implementation of the ROL::Vector interface that handles scalings in the inner product. A more generic version of ROL::PrimalScaledStdVector.
Definition at line 32 of file ROL_WrappedVector.hpp.
|
private |
Definition at line 40 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 41 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 42 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 34 of file ROL_WrappedVector.hpp.
|
private |
Definition at line 35 of file ROL_WrappedVector.hpp.
|
private |
Definition at line 36 of file ROL_WrappedVector.hpp.
|
inline |
Definition at line 62 of file ROL_ScaledVector.hpp.
References scaling_vec_, and WrappedVector().
Referenced by ROL::InactiveSet_PrimalVector< Real >::InactiveSet_PrimalVector().
|
inlinevirtual |
Definition at line 65 of file ROL_ScaledVector.hpp.
|
inlinevirtual |
Definition at line 47 of file ROL_WrappedVector.hpp.
|
inlineprotected |
Definition at line 53 of file ROL_ScaledVector.hpp.
References workspace_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::dot(), and ROL::InactiveSet_PrimalVector< Real >::dual().
|
inlineprotected |
Definition at line 56 of file ROL_ScaledVector.hpp.
References mult_, and scaling_vec_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::dot(), dot(), ROL::InactiveSet_PrimalVector< Real >::dual(), and dual().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 67 of file ROL_ScaledVector.hpp.
References getVector(), multiply_scaling(), and workspace_.
Referenced by norm().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 73 of file ROL_ScaledVector.hpp.
References clone(), and getVector().
Referenced by clone().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 77 of file ROL_ScaledVector.hpp.
References basis(), getVector(), and scaling_vec_.
Referenced by basis().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 81 of file ROL_ScaledVector.hpp.
References getVector(), multiply_scaling(), and workspace_.
|
inline |
Definition at line 87 of file ROL_ScaledVector.hpp.
References scaling_vec_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::basis(), ROL::InactiveSet_PrimalVector< Real >::clone(), and ROL::InactiveSet_PrimalVector< Real >::dual().
|
inline |
Definition at line 88 of file ROL_ScaledVector.hpp.
References scaling_vec_.
|
inline |
Definition at line 90 of file ROL_ScaledVector.hpp.
References scaling_vec_.
|
inline |
Definition at line 45 of file ROL_WrappedVector.hpp.
References vec_.
Referenced by PrimalScaledVector().
|
inlineoverridevirtual |
Definition at line 49 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 50 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 52 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 54 of file ROL_WrappedVector.hpp.
References dot().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 56 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 60 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 64 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 68 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 70 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 72 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 74 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 76 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 80 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 85 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 89 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 91 of file ROL_WrappedVector.hpp.
References vec_.
|
inlineoverridevirtual |
Definition at line 95 of file ROL_WrappedVector.hpp.
References vec_.
|
inline |
Definition at line 97 of file ROL_WrappedVector.hpp.
References vec_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::basis(), basis(), ROL::InactiveSet_PrimalVector< Real >::clone(), clone(), ROL::InactiveSet_PrimalVector< Real >::dot(), dot(), ROL::InactiveSet_PrimalVector< Real >::dual(), and dual().
|
inline |
Definition at line 98 of file ROL_WrappedVector.hpp.
References vec_.
|
inlinevirtual |
Definition at line 100 of file ROL_WrappedVector.hpp.
References vec_.
|
mutableprivate |
Definition at line 46 of file ROL_ScaledVector.hpp.
Referenced by basis(), getScalingVector(), getScalingVector(), ROL::InactiveSet_PrimalVector< Real >::InactiveSet_PrimalVector(), multiply_scaling(), PrimalScaledVector(), and setScalingVector().
|
mutableprivate |
Definition at line 47 of file ROL_ScaledVector.hpp.
Referenced by dot(), dual(), and getWorkspace().
|
private |
Definition at line 49 of file ROL_ScaledVector.hpp.
Referenced by multiply_scaling().
|
mutableprivate |
Definition at line 40 of file ROL_WrappedVector.hpp.
Referenced by apply(), applyBinary(), applyUnary(), axpy(), basis(), clone(), dimension(), dot(), dual(), getVector(), getVector(), plus(), print(), randomize(), reduce(), scale(), set(), setScalar(), setVector(), and WrappedVector().