ROL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROL::UserInputGenerator< Real > Class Template Reference

#include <ROL_UserInputGenerator.hpp>

+ Inheritance diagram for ROL::UserInputGenerator< Real >:

Public Member Functions

 UserInputGenerator (ROL::ParameterList &parlist, const ROL::Ptr< BatchManager< Real > > &bman)
 
 UserInputGenerator (const std::string file_pt, const std::string file_wt, const int n, const int dim, const ROL::Ptr< BatchManager< Real > > &bman)
 
void refine (void)
 
int numGlobalSamples (void) const
 
- Public Member Functions inherited from ROL::SampleGenerator< Real >
virtual ~SampleGenerator ()
 
 SampleGenerator (const ROL::Ptr< BatchManager< Real > > &bman)
 
 SampleGenerator (const SampleGenerator< Real > &sampler)
 
virtual void update (const Vector< Real > &x)
 
virtual int start (void)
 
virtual Real computeError (std::vector< Real > &vals)
 
virtual Real computeError (std::vector< ROL::Ptr< Vector< Real > > > &vals, const Vector< Real > &x)
 
virtual void setSamples (bool inConstructor=false)
 
virtual int numMySamples (void) const
 
virtual std::vector< Real > getMyPoint (const int i) const
 
virtual Real getMyWeight (const int i) const
 
int batchID (void) const
 
int numBatches (void) const
 
void sumAll (Real *input, Real *output, int dim) const
 
void sumAll (Vector< Real > &input, Vector< Real > &output) const
 
void broadcast (Real *input, int cnt, int root) const
 
void barrier (void) const
 
const ROL::Ptr< BatchManager
< Real > > 
getBatchManager (void) const
 
void print (const std::string &filename="samples", const int prec=12) const
 

Private Member Functions

void sample (const std::string &file_pt, const std::string &file_wt, const int n, const int dim, const ROL::Ptr< BatchManager< Real > > &bman)
 

Private Attributes

int nSamp_
 

Additional Inherited Members

- Protected Member Functions inherited from ROL::SampleGenerator< Real >
void setPoints (std::vector< std::vector< Real > > &p)
 
void setWeights (std::vector< Real > &w)
 

Detailed Description

template<class Real>
class ROL::UserInputGenerator< Real >

Definition at line 56 of file ROL_UserInputGenerator.hpp.

Constructor & Destructor Documentation

template<class Real >
ROL::UserInputGenerator< Real >::UserInputGenerator ( ROL::ParameterList &  parlist,
const ROL::Ptr< BatchManager< Real > > &  bman 
)
inline

Definition at line 120 of file ROL_UserInputGenerator.hpp.

References dim, and ROL::UserInputGenerator< Real >::sample().

template<class Real >
ROL::UserInputGenerator< Real >::UserInputGenerator ( const std::string  file_pt,
const std::string  file_wt,
const int  n,
const int  dim,
const ROL::Ptr< BatchManager< Real > > &  bman 
)
inline

Member Function Documentation

template<class Real >
void ROL::UserInputGenerator< Real >::sample ( const std::string &  file_pt,
const std::string &  file_wt,
const int  n,
const int  dim,
const ROL::Ptr< BatchManager< Real > > &  bman 
)
inlineprivate
template<class Real >
void ROL::UserInputGenerator< Real >::refine ( void  )
inlinevirtual

Reimplemented from ROL::SampleGenerator< Real >.

Definition at line 150 of file ROL_UserInputGenerator.hpp.

template<class Real >
int ROL::UserInputGenerator< Real >::numGlobalSamples ( void  ) const
inlinevirtual

Reimplemented from ROL::SampleGenerator< Real >.

Definition at line 152 of file ROL_UserInputGenerator.hpp.

References ROL::UserInputGenerator< Real >::nSamp_.

Member Data Documentation

template<class Real >
int ROL::UserInputGenerator< Real >::nSamp_
private

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