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 | |
DualScaledVector (const Ptr< V > &vec, const Ptr< V > &scaling_vec) | |
virtual | ~DualScaledVector () |
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 |
Protected Member Functions | |
VectorWorkspace< Real > & | getWorkspace () const |
void | divide_scaling (const < V > &y) const |
Private Types | |
using | V = Vector< Real > |
using | VPrim = PrimalScaledVector< Real > |
using | VDual = DualScaledVector< Real > |
Private Attributes | |
Ptv< V > | scaling_vec_ |
VectorWorkspace< Real > | workspace_ |
Elementwise::Divide< Real > | div_ |
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 70 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 136 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 137 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 138 of file ROL_ScaledVector.hpp.
|
inline |
Definition at line 158 of file ROL_ScaledVector.hpp.
|
inlinevirtual |
Definition at line 161 of file ROL_ScaledVector.hpp.
|
inlineprotected |
Definition at line 149 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::workspace_.
Referenced by ROL::InactiveSet_DualVector< Real >::dot(), and ROL::InactiveSet_DualVector< Real >::dual().
|
inlineprotected |
Definition at line 152 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::div_, and ROL::DualScaledVector< Real >::scaling_vec_.
Referenced by ROL::InactiveSet_DualVector< Real >::dot(), ROL::DualScaledVector< Real >::dot(), and ROL::DualScaledVector< Real >::dual().
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_DualVector< Real >.
Definition at line 163 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::divide_scaling(), and ROL::DualScaledVector< Real >::workspace_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_DualVector< Real >.
Definition at line 169 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_DualVector< Real >.
Definition at line 173 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_DualVector< Real >.
Definition at line 177 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::divide_scaling(), and ROL::DualScaledVector< Real >::workspace_.
|
inline |
Definition at line 183 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
Referenced by ROL::InactiveSet_DualVector< Real >::basis(), ROL::InactiveSet_DualVector< Real >::clone(), ROL::InactiveSet_DualVector< Real >::dot(), and ROL::InactiveSet_DualVector< Real >::dual().
|
inline |
Definition at line 184 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
inline |
Definition at line 186 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
mutableprivate |
Definition at line 142 of file ROL_ScaledVector.hpp.
Referenced by ROL::DualScaledVector< Real >::basis(), ROL::DualScaledVector< Real >::clone(), ROL::DualScaledVector< Real >::divide_scaling(), ROL::DualScaledVector< Real >::getScalingVector(), and ROL::DualScaledVector< Real >::setScalingVector().
|
mutableprivate |
Definition at line 143 of file ROL_ScaledVector.hpp.
Referenced by ROL::DualScaledVector< Real >::dot(), ROL::DualScaledVector< Real >::dual(), and ROL::DualScaledVector< Real >::getWorkspace().
|
private |
Definition at line 145 of file ROL_ScaledVector.hpp.
Referenced by ROL::DualScaledVector< Real >::divide_scaling().