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

#include <ROL_SampleGenerator.hpp>

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

Public Member Functions

virtual ~SampleGenerator ()
 
 SampleGenerator (Teuchos::RCP< 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< Teuchos::RCP< Vector< Real > > > &vals, const Vector< Real > &x)
 
virtual void refine (void)
 
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 barrier (void) const
 

Protected Member Functions

void setPoints (std::vector< std::vector< Real > > &p)
 
void setWeights (std::vector< Real > &w)
 

Private Attributes

int begin_
 
Teuchos::RCP< BatchManager
< Real > > 
bman_
 
std::vector< std::vector< Real > > points_
 
std::vector< Real > weights_
 

Detailed Description

template<class Real>
class ROL::SampleGenerator< Real >

Definition at line 54 of file ROL_SampleGenerator.hpp.

Constructor & Destructor Documentation

template<class Real>
virtual ROL::SampleGenerator< Real >::~SampleGenerator ( )
inlinevirtual

Definition at line 72 of file ROL_SampleGenerator.hpp.

template<class Real>
ROL::SampleGenerator< Real >::SampleGenerator ( Teuchos::RCP< BatchManager< Real > > &  bman)
inline

Definition at line 73 of file ROL_SampleGenerator.hpp.

template<class Real>
ROL::SampleGenerator< Real >::SampleGenerator ( const SampleGenerator< Real > &  sampler)
inline

Definition at line 74 of file ROL_SampleGenerator.hpp.

Member Function Documentation

template<class Real>
void ROL::SampleGenerator< Real >::setPoints ( std::vector< std::vector< Real > > &  p)
inlineprotected
template<class Real>
void ROL::SampleGenerator< Real >::setWeights ( std::vector< Real > &  w)
inlineprotected
template<class Real>
virtual void ROL::SampleGenerator< Real >::update ( const Vector< Real > &  x)
inlinevirtual
template<class Real>
virtual int ROL::SampleGenerator< Real >::start ( void  )
inlinevirtual

Definition at line 81 of file ROL_SampleGenerator.hpp.

References ROL::SampleGenerator< Real >::begin_.

template<class Real>
virtual Real ROL::SampleGenerator< Real >::computeError ( std::vector< Real > &  vals)
inlinevirtual
template<class Real>
virtual Real ROL::SampleGenerator< Real >::computeError ( std::vector< Teuchos::RCP< Vector< Real > > > &  vals,
const Vector< Real > &  x 
)
inlinevirtual
template<class Real>
virtual void ROL::SampleGenerator< Real >::refine ( void  )
inlinevirtual
template<class Real>
virtual void ROL::SampleGenerator< Real >::setSamples ( bool  inConstructor = false)
inlinevirtual

Reimplemented in ROL::SparseGridGenerator< Real >.

Definition at line 97 of file ROL_SampleGenerator.hpp.

template<class Real>
virtual int ROL::SampleGenerator< Real >::numMySamples ( void  ) const
inlinevirtual
template<class Real>
virtual std::vector<Real> ROL::SampleGenerator< Real >::getMyPoint ( const int  i) const
inlinevirtual
template<class Real>
virtual Real ROL::SampleGenerator< Real >::getMyWeight ( const int  i) const
inlinevirtual
template<class Real>
int ROL::SampleGenerator< Real >::batchID ( void  ) const
inline
template<class Real>
int ROL::SampleGenerator< Real >::numBatches ( void  ) const
inline
template<class Real>
void ROL::SampleGenerator< Real >::sumAll ( Real *  input,
Real *  output,
int  dim 
) const
inline
template<class Real>
void ROL::SampleGenerator< Real >::sumAll ( Vector< Real > &  input,
Vector< Real > &  output 
) const
inline

Definition at line 123 of file ROL_SampleGenerator.hpp.

References ROL::SampleGenerator< Real >::bman_.

template<class Real>
void ROL::SampleGenerator< Real >::barrier ( void  ) const
inline

Definition at line 127 of file ROL_SampleGenerator.hpp.

References ROL::SampleGenerator< Real >::bman_.

Member Data Documentation

template<class Real>
int ROL::SampleGenerator< Real >::begin_
private
template<class Real>
Teuchos::RCP<BatchManager<Real> > ROL::SampleGenerator< Real >::bman_
private
template<class Real>
std::vector<std::vector<Real> > ROL::SampleGenerator< Real >::points_
private
template<class Real>
std::vector<Real> ROL::SampleGenerator< Real >::weights_
private

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