31 #ifndef __TASMANIAN_SPARSE_HARDCODED_RULES_HPP
32 #define __TASMANIAN_SPARSE_HARDCODED_RULES_HPP
85 std::vector<double> nodes;
86 std::vector<double> weights;
88 std::vector<int> weights_offsets;
Rule with hard-corded tabulated points and weights.
Definition: tsgHardCodedTabulatedRules.hpp:64
double getWeight(int level, int point) const
Return the quadrature weight for level and given point.
void loadNodes()
Load the nodes into the local data-strutures.
TableGaussPatterson()
Constructor, loads the nodes into the internal data structures.
void loadWeights()
Load the weights into the local data-structures.
~TableGaussPatterson()=default
Destrutor, cleans all memory.
std::vector< double > getNodes(int level) const
Returns the nodes for the level, note that the nodes are nested.
static int getNumLevels()
Return the number of hard-coded levels.
Definition: tsgHardCodedTabulatedRules.hpp:72
Encapsulates the Tasmanian Sparse Grid module.
Definition: TasmanianSparseGrid.hpp:68
Algorithms and meta-data for the Gauuss, Chebyshev and custom rules.