SG++
sgpp::base::GaussLegendreQuadRule1D Class Reference

#include <GaussLegendreQuadRule1D.hpp>

Inheritance diagram for sgpp::base::GaussLegendreQuadRule1D:
sgpp::base::QuadRule1D

Public Member Functions

 GaussLegendreQuadRule1D ()
 load gauss quadrature points for uniform weight function. More...
 
 GaussLegendreQuadRule1D (const GaussLegendreQuadRule1D &that)=delete
 
void getLevelPointsAndWeightsNormalized (size_t level, base::DataVector &coordinates, base::DataVector &weights)
 the coordinates are normalized to [0, 1]. More...
 
 ~GaussLegendreQuadRule1D () override
 
- Public Member Functions inherited from sgpp::base::QuadRule1D
void getLevelPointsAndWeights (size_t level, base::DataVector &coordinates, base::DataVector &weights)
 
size_t getMaxSupportedLevel () const
 
 QuadRule1D ()
 
virtual ~QuadRule1D ()
 

Static Public Member Functions

static GaussLegendreQuadRule1DgetInstance ()
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::base::QuadRule1D
std::vector< double > coordinatesWeights
 

Constructor & Destructor Documentation

sgpp::base::GaussLegendreQuadRule1D::GaussLegendreQuadRule1D ( )

load gauss quadrature points for uniform weight function.

The points and the weights are generated with numpy.polynomial.legendre.leggauss. the weights are additionally normalized to 1.

References sgpp::base::QuadRule1D::coordinatesWeights.

sgpp::base::GaussLegendreQuadRule1D::~GaussLegendreQuadRule1D ( )
override
sgpp::base::GaussLegendreQuadRule1D::GaussLegendreQuadRule1D ( const GaussLegendreQuadRule1D that)
delete

Member Function Documentation

void sgpp::base::GaussLegendreQuadRule1D::getLevelPointsAndWeightsNormalized ( size_t  level,
base::DataVector coordinates,
base::DataVector weights 
)

the coordinates are normalized to [0, 1].

Parameters
levellevel of quadrature, is equal to the number of quadrature points
coordinatesreturns the x-coordinates in [0, 1]
weightsreturns the corresponding weights (scaled by 0.5)

References python.test::f, sgpp::base::QuadRule1D::getLevelPointsAndWeights(), level, and sgpp::base::DataVector::mult().

Referenced by sgpp::combigrid::LTwoScalarProductHashMapNakBsplineBoundaryCombigrid::mult().


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