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 (std::string file_pt, std::string file_wt, int n, 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 (std::string file_pt, std::string file_wt, int n, 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<typename Real>
class ROL::UserInputGenerator< Real >

Definition at line 23 of file ROL_UserInputGenerator.hpp.

Constructor & Destructor Documentation

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

Definition at line 82 of file ROL_UserInputGenerator.hpp.

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

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

Member Function Documentation

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

Reimplemented from ROL::SampleGenerator< Real >.

Definition at line 112 of file ROL_UserInputGenerator.hpp.

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

Reimplemented from ROL::SampleGenerator< Real >.

Definition at line 114 of file ROL_UserInputGenerator.hpp.

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

Member Data Documentation

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

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