ROL
|
#include <ROL_SparseGridGenerator.hpp>
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) |
![]() | |
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 | |
![]() | |
void | setPoints (std::vector< std::vector< Real > > &p) |
void | setWeights (std::vector< Real > &w) |
Definition at line 65 of file ROL_SparseGridGenerator.hpp.
ROL::SparseGridGenerator< Real >::SparseGridGenerator | ( | Teuchos::RCP< BatchManager< Real > > & | bman, |
SparseGridInfo & | info, | ||
bool | adaptive = false |
||
) |
Definition at line 50 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::SparseGridGenerator< Real >::activeIndex_, ROL::SparseGridInfo::dim, ROL::SparseGridGenerator< Real >::direction_, ROL::SparseGridGenerator< Real >::error_, ROL::SparseGridGenerator< Real >::grid_, ROL::SparseGridInfo::growth1D, ROL::SparseGridGenerator< Real >::index_, ROL::SparseGridInfo::maxLevel, ROL::SparseGridInfo::normalize, ROL::SparseGridGenerator< Real >::oldIndex_, ROL::SparseGridInfo::rule1D, ROL::SparseGridGenerator< Real >::setSamples(), and ROL::SparseGridInfo::useSandia.
ROL::SparseGridGenerator< Real >::SparseGridGenerator | ( | Teuchos::RCP< BatchManager< Real > > & | bman, |
const char * | SGinfo, | ||
const char * | SGdata, | ||
bool | isNormalized = true |
||
) |
Definition at line 76 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::SparseGridGenerator< Real >::grid_, and ROL::SparseGridGenerator< Real >::setSamples().
|
private |
Definition at line 104 of file ROL_SparseGridGeneratorDef.hpp.
|
private |
Definition at line 118 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::growthRule1D(), and ROL::Quadrature< Real >::update().
|
private |
Definition at line 86 of file ROL_SparseGridGeneratorDef.hpp.
|
private |
Definition at line 245 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::SampleGenerator< Real >::numBatches().
|
private |
Definition at line 284 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::Quadrature< Real >::getCubature(), ROL::Quadrature< Real >::getWeight(), ROL::SampleGenerator< Real >::setPoints(), and ROL::SampleGenerator< Real >::setWeights().
|
virtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 133 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::SampleGenerator< Real >::update().
|
virtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 147 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::SampleGenerator< Real >::getMyWeight(), and ROL::SampleGenerator< Real >::sumAll().
|
virtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 174 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::Vector< Real >::clone(), and ROL::SampleGenerator< Real >::sumAll().
|
virtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 202 of file ROL_SparseGridGeneratorDef.hpp.
|
virtual |
Reimplemented from ROL::SampleGenerator< Real >.
Definition at line 268 of file ROL_SparseGridGeneratorDef.hpp.
References ROL::SampleGenerator< Real >::setPoints(), and ROL::SampleGenerator< Real >::setWeights().
Referenced by ROL::SparseGridGenerator< Real >::SparseGridGenerator().
|
private |
Definition at line 67 of file ROL_SparseGridGenerator.hpp.
Referenced by ROL::SparseGridGenerator< Real >::SparseGridGenerator().
|
private |
Definition at line 68 of file ROL_SparseGridGenerator.hpp.
|
private |
Definition at line 69 of file ROL_SparseGridGenerator.hpp.
|
private |
Definition at line 70 of file ROL_SparseGridGenerator.hpp.
Referenced by ROL::SparseGridGenerator< Real >::SparseGridGenerator().
|
private |
Definition at line 71 of file ROL_SparseGridGenerator.hpp.
Referenced by ROL::SparseGridGenerator< Real >::SparseGridGenerator().
|
private |
Definition at line 72 of file ROL_SparseGridGenerator.hpp.
Referenced by ROL::SparseGridGenerator< Real >::SparseGridGenerator().
|
private |
Definition at line 73 of file ROL_SparseGridGenerator.hpp.
Referenced by ROL::SparseGridGenerator< Real >::SparseGridGenerator().
|
private |
Definition at line 74 of file ROL_SparseGridGenerator.hpp.
|
private |
Definition at line 75 of file ROL_SparseGridGenerator.hpp.
Referenced by ROL::SparseGridGenerator< Real >::SparseGridGenerator().