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 35 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 101 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 102 of file ROL_ScaledVector.hpp.
|
private |
Definition at line 103 of file ROL_ScaledVector.hpp.
|
inline |
Definition at line 123 of file ROL_ScaledVector.hpp.
|
inlinevirtual |
Definition at line 126 of file ROL_ScaledVector.hpp.
|
inlineprotected |
Definition at line 114 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 117 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 128 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 134 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_DualVector< Real >.
Definition at line 138 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
inlineoverridevirtual |
Reimplemented in ROL::InactiveSet_DualVector< Real >.
Definition at line 142 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::divide_scaling(), and ROL::DualScaledVector< Real >::workspace_.
|
inline |
Definition at line 148 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 149 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
inline |
Definition at line 151 of file ROL_ScaledVector.hpp.
References ROL::DualScaledVector< Real >::scaling_vec_.
|
mutableprivate |
Definition at line 107 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 108 of file ROL_ScaledVector.hpp.
Referenced by ROL::DualScaledVector< Real >::dot(), ROL::DualScaledVector< Real >::dual(), and ROL::DualScaledVector< Real >::getWorkspace().
|
private |
Definition at line 110 of file ROL_ScaledVector.hpp.
Referenced by ROL::DualScaledVector< Real >::divide_scaling().