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

#include <ROL_SparseGridGenerator.hpp>

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

Public Member Functions

 SparseGridGenerator (Teuchos::RCP< BatchManager< Real > > &bman, SparseGridInfo &info, bool adaptive=false)
 
 SparseGridGenerator (Teuchos::RCP< BatchManager< Real > > &bman, const char *SGinfo, const char *SGdata, bool isNormalized=true)
 
void update (const Vector< Real > &x)
 
Real computeError (std::vector< Real > &vals)
 
Real computeError (std::vector< Teuchos::RCP< Vector< Real > > > &vals, const Vector< Real > &x)
 
void refine (void)
 
void setSamples (bool inConstructor=false)
 
- Public Member Functions inherited from ROL::SampleGenerator< Real >
virtual ~SampleGenerator ()
 
 SampleGenerator (Teuchos::RCP< BatchManager< Real > > &bman)
 
 SampleGenerator (const SampleGenerator< Real > &sampler)
 
virtual int start (void)
 
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
 

Private Member Functions

bool isAdmissible (std::vector< int > &index, int direction)
 
void buildDiffRule (Quadrature< Real > &outRule, std::vector< int > &index)
 
bool checkMaxLevel (std::vector< int > &index)
 
void splitSamples (std::vector< std::vector< Real > > &mypts, std::vector< Real > &mywts)
 
void updateSamples (Quadrature< Real > &grid)
 

Private Attributes

Teuchos::RCP< Quadrature< Real > > grid_
 
bool adaptive_
 
SparseGridInfo info_
 
std::multimap< Real,
std::vector< int > > 
activeIndex_
 
std::set< std::vector< int > > oldIndex_
 
Real error_
 
std::vector< int > index_
 
std::vector< int > search_index_
 
int direction_
 

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::SparseGridGenerator< Real >

Definition at line 65 of file ROL_SparseGridGenerator.hpp.

Constructor & Destructor Documentation

template<class Real >
ROL::SparseGridGenerator< Real >::SparseGridGenerator ( Teuchos::RCP< BatchManager< Real > > &  bman,
SparseGridInfo info,
bool  adaptive = false 
)
template<class Real >
ROL::SparseGridGenerator< Real >::SparseGridGenerator ( Teuchos::RCP< BatchManager< Real > > &  bman,
const char *  SGinfo,
const char *  SGdata,
bool  isNormalized = true 
)

Member Function Documentation

template<class Real >
bool ROL::SparseGridGenerator< Real >::isAdmissible ( std::vector< int > &  index,
int  direction 
)
private

Definition at line 104 of file ROL_SparseGridGeneratorDef.hpp.

template<class Real >
void ROL::SparseGridGenerator< Real >::buildDiffRule ( Quadrature< Real > &  outRule,
std::vector< int > &  index 
)
private
template<class Real >
bool ROL::SparseGridGenerator< Real >::checkMaxLevel ( std::vector< int > &  index)
private

Definition at line 86 of file ROL_SparseGridGeneratorDef.hpp.

template<class Real >
void ROL::SparseGridGenerator< Real >::splitSamples ( std::vector< std::vector< Real > > &  mypts,
std::vector< Real > &  mywts 
)
private
template<class Real >
void ROL::SparseGridGenerator< Real >::updateSamples ( Quadrature< Real > &  grid)
private
template<class Real >
void ROL::SparseGridGenerator< Real >::update ( const Vector< Real > &  x)
virtual
template<class Real >
Real ROL::SparseGridGenerator< Real >::computeError ( std::vector< Real > &  vals)
virtual
template<class Real >
Real ROL::SparseGridGenerator< Real >::computeError ( std::vector< Teuchos::RCP< Vector< Real > > > &  vals,
const Vector< Real > &  x 
)
virtual
template<class Real >
void ROL::SparseGridGenerator< Real >::refine ( void  )
virtual

Reimplemented from ROL::SampleGenerator< Real >.

Definition at line 202 of file ROL_SparseGridGeneratorDef.hpp.

template<class Real >
void ROL::SparseGridGenerator< Real >::setSamples ( bool  inConstructor = false)
virtual

Member Data Documentation

template<class Real >
Teuchos::RCP<Quadrature<Real> > ROL::SparseGridGenerator< Real >::grid_
private
template<class Real >
bool ROL::SparseGridGenerator< Real >::adaptive_
private

Definition at line 68 of file ROL_SparseGridGenerator.hpp.

template<class Real >
SparseGridInfo ROL::SparseGridGenerator< Real >::info_
private

Definition at line 69 of file ROL_SparseGridGenerator.hpp.

template<class Real >
std::multimap<Real,std::vector<int> > ROL::SparseGridGenerator< Real >::activeIndex_
private
template<class Real >
std::set<std::vector<int> > ROL::SparseGridGenerator< Real >::oldIndex_
private
template<class Real >
Real ROL::SparseGridGenerator< Real >::error_
private
template<class Real >
std::vector<int> ROL::SparseGridGenerator< Real >::index_
private
template<class Real >
std::vector<int> ROL::SparseGridGenerator< Real >::search_index_
private

Definition at line 74 of file ROL_SparseGridGenerator.hpp.

template<class Real >
int ROL::SparseGridGenerator< Real >::direction_
private

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