Doxygen
1.9.1
|
Header to include the exotic quadrature templates. More...
#include "tsgAddonsCommon.hpp"
Go to the source code of this file.
Namespaces | |
TasGrid | |
Encapsulates the Tasmanian Sparse Grid module. | |
Functions | |
double | TasGrid::poly_eval (const std::vector< double > &roots, double x) |
Evaluates a polynomial with roots given by roots at the point x. More... | |
double | TasGrid::lagrange_eval (size_t idx, const std::vector< double > &roots, double x) |
Evaluates a Lagrange basis polynomial at a point x. More... | |
template<bool is_symmetric> | |
void | TasGrid::getGaussNodesAndWeights (const int n, const std::vector< double > &ref_points, const std::vector< double > &ref_weights, std::vector< std::vector< double >> &points_cache, std::vector< std::vector< double >> &weights_cache) |
Generates n levels of points and weights using orthogonal polynomials with respect to ref_points and ref_weights. More... | |
TasGrid::CustomTabulated | TasGrid::getShiftedExoticQuadrature (const int n, const double shift, const std::vector< double > &shifted_weights, const std::vector< double > &ref_points, const char *description, const bool is_symmetric=false) |
Generate the exotic quadrature points and weights and load them into a TasGrid::CustomTabulated object. More... | |
void | TasGrid::shiftReferenceWeights (std::vector< double > const &vals, double shift, std::vector< double > &ref_weights) |
Multiplies the reference quadrature weights by the shifted values of the weight function. More... | |
TasGrid::CustomTabulated | TasGrid::getExoticQuadrature (const int num_levels, const double shift, const TasGrid::TasmanianSparseGrid &grid, const char *description, const bool is_symmetric=false) |
Constructs an exotic quadrature from a sparse grid object. More... | |
TasGrid::CustomTabulated | TasGrid::getExoticQuadrature (const int num_levels, const double shift, std::function< double(double)> weight_fn, const int num_ref_points, const char *description, const bool is_symmetric=false) |
Similar to getExoticQuadrature() but the weight function is defined by a lambda expression. More... | |
Header to include the exotic quadrature templates.