ROL
Public Member Functions | Private Types | Private Attributes | List of all members
ROL::DualScaledStdVector Class Reference

Provides the std::vector implementation of the ROL::Vector interface that handles scalings in the inner product. Also see ROL::PrimalScaledStdVector. More...

#include <ROL_ScaledStdVector.hpp>

Public Member Functions

 DualScaledStdVector (const Ptr< std::vector< Element > > &std_vec, const Ptr< std::vector< Element > > &scaling_vec)
 
Real dot (const Vector< Real > &x) const
 
Ptr< Vector< Real > > clone () const
 
const Vector< Real > & dual () const
 

Private Types

typedef std::vector< Element >::size_type uint
 

Private Attributes

Ptr< std::vector< Element > > scaling_vec_
 
Ptr< PrimalScaledStdVector< Real > > primal_vec_
 
bool isDualInitialized_
 

Detailed Description

Provides the std::vector implementation of the ROL::Vector interface that handles scalings in the inner product. Also see ROL::PrimalScaledStdVector.

Definition at line 65 of file ROL_ScaledStdVector.hpp.

Member Typedef Documentation

◆ uint

typedef std::vector<Element>::size_type ROL::DualScaledStdVector::uint
private

Definition at line 125 of file ROL_ScaledStdVector.hpp.

Constructor & Destructor Documentation

◆ DualScaledStdVector()

ROL::DualScaledStdVector::DualScaledStdVector ( const Ptr< std::vector< Element > > &  std_vec,
const Ptr< std::vector< Element > > &  scaling_vec 
)
inline

Definition at line 135 of file ROL_ScaledStdVector.hpp.

Member Function Documentation

◆ dot()

Real ROL::DualScaledStdVector::dot ( const Vector< Real > &  x) const
inline

Definition at line 140 of file ROL_ScaledStdVector.hpp.

References ROL::StdVector< Real, Element >::getVector().

Referenced by main().

◆ clone()

Ptr<Vector<Real> > ROL::DualScaledStdVector::clone ( ) const
inline

Definition at line 152 of file ROL_ScaledStdVector.hpp.

References ROL::StdVector< Real, Element >::getVector(), and scaling_vec_.

Referenced by main().

◆ dual()

const Vector<Real>& ROL::DualScaledStdVector::dual ( ) const
inline

Member Data Documentation

◆ scaling_vec_

Ptr<std::vector<Element> > ROL::DualScaledStdVector::scaling_vec_
private

Definition at line 129 of file ROL_ScaledStdVector.hpp.

Referenced by clone(), and dual().

◆ primal_vec_

Ptr<PrimalScaledStdVector<Real> > ROL::DualScaledStdVector::primal_vec_
mutableprivate

Definition at line 130 of file ROL_ScaledStdVector.hpp.

Referenced by dual().

◆ isDualInitialized_

bool ROL::DualScaledStdVector::isDualInitialized_
mutableprivate

Definition at line 131 of file ROL_ScaledStdVector.hpp.

Referenced by dual().


The documentation for this class was generated from the following file: