MUQ  0.4.3
ExponentialGrowthQuadrature.cpp
Go to the documentation of this file.
2 
3 using namespace muq::Approximation;
4 
5 ExponentialGrowthQuadrature::ExponentialGrowthQuadrature(std::shared_ptr<Quadrature> const& quadIn) : Quadrature(1),
6  otherQuad(quadIn)
7 {
8  assert(quadIn->Dim()==1);
9 }
10 
11 void ExponentialGrowthQuadrature::Compute(unsigned int index)
12 {
13  otherQuad->Compute(std::exp2(index));
14 }
15 
16 unsigned int ExponentialGrowthQuadrature::Exactness(unsigned int index) const
17 {
18  return otherQuad->Exactness(std::exp2(index));
19 }
20 
21 Eigen::MatrixXd const& ExponentialGrowthQuadrature::Points() const
22 {
23  return otherQuad->Points();
24 }
25 
26 Eigen::VectorXd const& ExponentialGrowthQuadrature::Weights() const
27 {
28  return otherQuad->Weights();
29 }
virtual Eigen::VectorXd const & Weights() const override
virtual void Compute(unsigned int index) override
virtual Eigen::MatrixXd const & Points() const override
ExponentialGrowthQuadrature(std::shared_ptr< Quadrature > const &quadIn)
virtual unsigned int Exactness(unsigned int quadOrder) const override
Base class for multivariate quadrature rules. @detail An abstract class for computing nodes and weigh...
Definition: Quadrature.h:124