Doxygen
1.9.1
|
Holds a std::forward_list of pairs of points indexes and values, and a MultiIndexSet of initial nodes. More...
#include <tsgDConstructGridGlobal.hpp>
Public Member Functions | |
SimpleConstructData ()=default | |
Default empty constructor. | |
template<typename iomode > | |
SimpleConstructData (std::istream &is, int num_dimensions, int num_outputs, iomode) | |
Read constructor, requires the number of dimensions and outputs. | |
template<bool use_ascii> | |
void | write (std::ostream &os) const |
Save to a file in either ascii or binary format. | |
void | restrictData (int ibegin, int iend) |
Restrict data between ibegin and iend entries. | |
std::vector< double > | extractValues (MultiIndexSet const &points) |
Remove points from the data and return a vector of the values in the points order. | |
Public Attributes | |
MultiIndexSet | initial_points |
Keeps track of the initial point set, so those can be computed first. | |
std::forward_list< NodeData > | data |
A list of pair indicating point and model output values. | |
Holds a std::forward_list of pairs of points indexes and values, and a MultiIndexSet of initial nodes.
Used for Sequence and Local Polynomial grids, where points can be added to the grid only when they form a lower complete set (sequence) or a connected graph (local polynomial). However, in order to facilitate parallelism, significantly large number of candidate points should be considered at any time. A large initial grid will allow parallelism, but nodes may be computed in any arbitrary order hence data has to be stored temporarily and wait until it can be incorporated into the grid.