Doxygen 1.9.1
Toolkit for Adaptive Stochastic Modeling and Non-Intrusive ApproximatioN: Tasmanian v8.2 (development)
Refinement related classes, structures, and methods
Collaboration diagram for Refinement related classes, structures, and methods:

Files

file  tsgDConstructGridGlobal.hpp
 Class and data types used for dynamic construction of Global grids.
 

Classes

struct  TasGrid::NodeData
 Holds the pair of point index and model value, the struct is used in a std::forward_list. More...
 
struct  TasGrid::TensorData
 Holds the description of a single tensor candidate for inclusion into the grid. More...
 
class  TasGrid::DynamicConstructorDataGlobal
 Helper class that stores data from dynamic construction of a Global grid. More...
 
struct  TasGrid::SimpleConstructData
 Holds a std::forward_list of pairs of points indexes and values, and a MultiIndexSet of initial nodes. More...
 

Functions

template<class T >
std::vector< const T * > TasGrid::makeReverseReferenceVector (const std::forward_list< T > &list)
 Takes a list and creates a vector of references in reversed order, needed for I/O so that read can be followed by push_front. . More...
 
template<bool use_ascii>
void TasGrid::writeNodeDataList (const std::forward_list< NodeData > &data, std::ostream &os)
 Writes a NodeData std::forward_list to a file using either binary or ascii format. . More...
 
template<typename iomode >
std::forward_list< NodeDataTasGrid::readNodeDataList (std::istream &is, size_t num_dimensions, size_t num_outputs)
 Reads a NodeData std::forward_list from a file using either binary or ascii format. . More...
 
template<typename iomode >
std::forward_list< TensorDataTasGrid::readTensorDataList (std::istream &is, size_t num_dimensions)
 Reads a TensorData std::forward_list from a file using either binary or ascii format. More...
 
template<class RuleLike >
std::vector< double > TasGrid::listToNodes (std::forward_list< NodeData > const &node_list, size_t num_dimensions, RuleLike const &rule)
 Using MultiIndexManipulations::indexesToNodes() convert the node_list to actual points according to the rule. More...
 
template<typename callable_method >
std::vector< double > TasGrid::listToLocalNodes (std::forward_list< NodeData > const &node_list, size_t num_dimensions, callable_method rule)
 Using MultiIndexManipulations::indexesToNodes() convert the node_list to actual points according to the rule. More...
 

Detailed Description

Adaptive Refinement
The most efficient sparse grids approximation strategies are adaptive, i.e., the grid is constructed to best capture the behavior of the specific target model. Adapting a grid requires analysis of the existing loaded model values followed by a decision on how to best expand the grid. Sometimes the complexity of the refinement algorithms requires additional data storage and methods implemented outside of the main grid classes.

Function Documentation

◆ makeReverseReferenceVector()

template<class T >
std::vector<const T*> TasGrid::makeReverseReferenceVector ( const std::forward_list< T > &  list)

Takes a list and creates a vector of references in reversed order, needed for I/O so that read can be followed by push_front. .

◆ writeNodeDataList()

template<bool use_ascii>
void TasGrid::writeNodeDataList ( const std::forward_list< NodeData > &  data,
std::ostream &  os 
)

Writes a NodeData std::forward_list to a file using either binary or ascii format. .

◆ readNodeDataList()

template<typename iomode >
std::forward_list<NodeData> TasGrid::readNodeDataList ( std::istream &  is,
size_t  num_dimensions,
size_t  num_outputs 
)

Reads a NodeData std::forward_list from a file using either binary or ascii format. .

◆ readTensorDataList()

template<typename iomode >
std::forward_list<TensorData> TasGrid::readTensorDataList ( std::istream &  is,
size_t  num_dimensions 
)

Reads a TensorData std::forward_list from a file using either binary or ascii format.

◆ listToNodes()

template<class RuleLike >
std::vector<double> TasGrid::listToNodes ( std::forward_list< NodeData > const &  node_list,
size_t  num_dimensions,
RuleLike const &  rule 
)

Using MultiIndexManipulations::indexesToNodes() convert the node_list to actual points according to the rule.

◆ listToLocalNodes()

template<typename callable_method >
std::vector<double> TasGrid::listToLocalNodes ( std::forward_list< NodeData > const &  node_list,
size_t  num_dimensions,
callable_method  rule 
)

Using MultiIndexManipulations::indexesToNodes() convert the node_list to actual points according to the rule.