Doxygen 1.9.1
Toolkit for Adaptive Stochastic Modeling and Non-Intrusive ApproximatioN: Tasmanian v8.2 (development)
TasGrid::CompleteStorage Class Reference

Stores complete set of points before adding to the sparse grid. More...

#include <tsgCandidateManager.hpp>

Public Member Functions

template<typename IntType >
 CompleteStorage (IntType dimensions)
 Constructor, accepts number of dimensions as a constant parameter.
 
 ~CompleteStorage ()
 Default destructor.
 
void write (std::ostream &os) const
 Write the stored samples to a stream.
 
void read (std::istream &is)
 Read the stored samples from the stream.
 
void add (std::vector< double > const &x, std::vector< double > const &y)
 Add a point to the stored list.
 
void load (TasmanianSparseGrid &grid)
 Move the stored points into the grid.
 
size_t getNumStored () const
 Returns the number of stored points.
 

Detailed Description

Stores complete set of points before adding to the sparse grid.

Constructing a grid one point at a time has high computational cost of at least O(N^2), adding points in batches can amortize the cost to O(N log(N)). This class stores the points temporarily before they can be loaded.


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