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 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 69 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 75 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 76 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 77 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 69 of file ROL_WrappedVector.hpp.
|
private |
Definition at line 70 of file ROL_WrappedVector.hpp.
|
private |
Definition at line 71 of file ROL_WrappedVector.hpp.
|
inline |
Definition at line 97 of file ROL_ScaledVector.hpp.
|
inlinevirtual |
Definition at line 100 of file ROL_ScaledVector.hpp.
|
inlinevirtual |
Definition at line 82 of file ROL_WrappedVector.hpp.
|
inlineprotected |
Definition at line 88 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::workspace_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::dot(), and ROL::InactiveSet_PrimalVector< Real >::dual().
|
inlineprotected |
Definition at line 91 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::mult_, and ROL::PrimalScaledVector< Real >::scaling_vec_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::dot(), ROL::PrimalScaledVector< Real >::dot(), ROL::PrimalScaledVector< Real >::dual(), and ROL::InactiveSet_PrimalVector< Real >::dual().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 102 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::getVector(), ROL::PrimalScaledVector< Real >::multiply_scaling(), and ROL::PrimalScaledVector< Real >::workspace_.
Referenced by ROL::PrimalScaledVector< Real >::norm().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 108 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::getVector(), and ROL::PrimalScaledVector< Real >::scaling_vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 112 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::getVector(), and ROL::PrimalScaledVector< Real >::scaling_vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 116 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::getVector(), ROL::PrimalScaledVector< Real >::multiply_scaling(), and ROL::PrimalScaledVector< Real >::workspace_.
|
inline |
Definition at line 122 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::scaling_vec_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::basis(), ROL::InactiveSet_PrimalVector< Real >::clone(), and ROL::InactiveSet_PrimalVector< Real >::dual().
|
inline |
Definition at line 123 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::scaling_vec_.
|
inline |
Definition at line 125 of file ROL_ScaledVector.hpp.
References ROL::PrimalScaledVector< Real >::scaling_vec_.
|
inline |
Definition at line 80 of file ROL_WrappedVector.hpp.
|
inlineoverridevirtual |
Definition at line 84 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 85 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 87 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 89 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::dot().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 91 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 95 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 99 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 103 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 105 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_PrimalVector< Real >.
Definition at line 107 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 109 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 113 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 118 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 122 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 124 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlineoverridevirtual |
Definition at line 128 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inline |
Definition at line 130 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
Referenced by ROL::InactiveSet_PrimalVector< Real >::basis(), ROL::PrimalScaledVector< Real >::basis(), ROL::InactiveSet_PrimalVector< Real >::clone(), ROL::PrimalScaledVector< Real >::clone(), ROL::InactiveSet_PrimalVector< Real >::dot(), ROL::PrimalScaledVector< Real >::dot(), ROL::PrimalScaledVector< Real >::dual(), and ROL::InactiveSet_PrimalVector< Real >::dual().
|
inline |
Definition at line 131 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
inlinevirtual |
Definition at line 133 of file ROL_WrappedVector.hpp.
References ROL::PrimalScaledVector< Real >::vec_.
|
mutableprivate |
Definition at line 81 of file ROL_ScaledVector.hpp.
Referenced by ROL::PrimalScaledVector< Real >::basis(), ROL::PrimalScaledVector< Real >::clone(), ROL::PrimalScaledVector< Real >::getScalingVector(), ROL::PrimalScaledVector< Real >::multiply_scaling(), and ROL::PrimalScaledVector< Real >::setScalingVector().
|
mutableprivate |
Definition at line 82 of file ROL_ScaledVector.hpp.
Referenced by ROL::PrimalScaledVector< Real >::dot(), ROL::PrimalScaledVector< Real >::dual(), and ROL::PrimalScaledVector< Real >::getWorkspace().
|
private |
Definition at line 84 of file ROL_ScaledVector.hpp.
Referenced by ROL::PrimalScaledVector< Real >::multiply_scaling().
|
mutableprivate |
Definition at line 75 of file ROL_WrappedVector.hpp.
Referenced by ROL::PrimalScaledVector< Real >::applyBinary(), ROL::PrimalScaledVector< Real >::applyUnary(), ROL::PrimalScaledVector< Real >::axpy(), ROL::PrimalScaledVector< Real >::basis(), ROL::PrimalScaledVector< Real >::clone(), ROL::PrimalScaledVector< Real >::dimension(), ROL::PrimalScaledVector< Real >::dot(), ROL::PrimalScaledVector< Real >::dual(), ROL::PrimalScaledVector< Real >::getVector(), ROL::PrimalScaledVector< Real >::plus(), ROL::PrimalScaledVector< Real >::print(), ROL::PrimalScaledVector< Real >::randomize(), ROL::PrimalScaledVector< Real >::reduce(), ROL::PrimalScaledVector< Real >::scale(), ROL::PrimalScaledVector< Real >::set(), ROL::PrimalScaledVector< Real >::setScalar(), and ROL::PrimalScaledVector< Real >::setVector().