ROL
|
#include <ROL_UserInputGenerator.hpp>
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) |
Definition at line 56 of file ROL_UserInputGenerator.hpp.
|
inline |
Definition at line 120 of file ROL_UserInputGenerator.hpp.
References dim, and ROL::UserInputGenerator< Real >::sample().
|
inline |
Definition at line 141 of file ROL_UserInputGenerator.hpp.
References ROL::UserInputGenerator< Real >::sample().
|
inlineprivate |
Definition at line 60 of file ROL_UserInputGenerator.hpp.
References dim, ROL::UserInputGenerator< Real >::nSamp_, ROL::SampleGenerator< Real >::setPoints(), and ROL::SampleGenerator< Real >::setWeights().
Referenced by ROL::UserInputGenerator< Real >::UserInputGenerator().
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 150 of file ROL_UserInputGenerator.hpp.
|
inlinevirtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 152 of file ROL_UserInputGenerator.hpp.
References ROL::UserInputGenerator< Real >::nSamp_.
|
private |
Definition at line 58 of file ROL_UserInputGenerator.hpp.
Referenced by ROL::UserInputGenerator< Real >::numGlobalSamples(), and ROL::UserInputGenerator< Real >::sample().