QGaussLegendre1D
-
class QGaussLegendre1D : public QuadratureBase
Public Functions
-
inline virtual void SetName() override
sets: order of the quadrature
Sets: name of the quadrature
-
inline virtual void SetNq() override
sets: number of gridpoints of the quadrature
-
virtual void SetPointsAndWeights() override
Computes the a vector (length: nq) of (coordinates of) gridpoints used for the quadrature rule. Computes the a vector (length: nq) of weights for the gridpoints. The indices match the gridpoints VectorVector. Sets computed values for _points and _weights.
-
virtual void SetConnectivity() override
sets: Connectivity Adjacency Matrix as VektorVektor
-
virtual double Integrate(double (*f)(double, double, double)) override
Integrates f(x,y,z) with the quadrature.
- Parameters:
f – density function that depends on a three spatial dimensions.
- Returns:
result of the quadrature rule
-
virtual double IntegrateSpherical(double (*f)(double, double)) override
Integrates f(x,y,z) with the quadrature.
- Parameters:
f – density function that depends on a spherical coordinates.
- Returns:
result of the quadrature rule
-
virtual std::vector<double> Integrate(std::vector<double> (*f)(double, double, double), unsigned) override
Integrates vector valued f(x,y,z) with the quadrature. Each dimension is integrated by itself.
- Parameters:
f – density function that depends on a three spatial dimensions.
- Returns:
result of the quadrature rule (vector valued)
-
inline virtual void SetName() override