Doxygen 1.9.1
Toolkit for Adaptive Stochastic Modeling and Non-Intrusive ApproximatioN: Tasmanian v8.2 (development)
tsgLoadNeededValues.hpp File Reference

Templates for non-adaptive sampling from lambda models. More...

Include dependency graph for tsgLoadNeededValues.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 TasGrid
 Encapsulates the Tasmanian Sparse Grid module.
 

Functions

template<bool parallel_construction = true, bool overwrite_loaded = false>
void TasGrid::loadNeededValues (std::function< void(double const x[], double y[], size_t thread_id)> model, TasmanianSparseGrid &grid, size_t num_threads)
 Loads the current grid with model values, does not perform any refinement. More...
 
template<bool parallel_construction = true, bool overwrite_loaded = false>
void TasGrid::loadNeededValues (std::function< void(std::vector< double > const &x, std::vector< double > &y, size_t thread_id)> model, TasmanianSparseGrid &grid, size_t num_threads)
 Overload that uses vectors for the model inputs and outputs. More...
 
template<bool parallel_construction = true, bool overwrite_loaded = false>
void TasGrid::loadNeededPoints (std::function< void(double const x[], double y[], size_t thread_id)> model, TasmanianSparseGrid &grid, size_t num_threads)
 Alias to loadNeededValues(), array variant.
 
template<bool parallel_construction = true, bool overwrite_loaded = false>
void TasGrid::loadNeededPoints (std::function< void(std::vector< double > const &x, std::vector< double > &y, size_t thread_id)> model, TasmanianSparseGrid &grid, size_t num_threads)
 Alias to loadNeededValues(), vector variant.
 

Detailed Description

Templates for non-adaptive sampling from lambda models.

Author
Miroslav Stoyanov

Templates that call call a model at the needed points and load the corresponding model values.