Chi-Tech
quadrature_gausslegendre.h
Go to the documentation of this file.
1#ifndef QUADRATURE_GAUSS_LEGENDRE_H
2#define QUADRATURE_GAUSS_LEGENDRE_H
3
4#include "quadrature.h"
5
6namespace chi_math
7{
8 class QuadratureGaussLegendre;
9}
10
11//######################################################### Class Def
12/**Gauss-Legendre quadrature.*/
14{
15public:
17 explicit QuadratureGaussLegendre(const chi::InputParameters& params);
18 explicit
20 bool verbose=false,
21 unsigned int max_iters=1000,
22 double tol=1.0e-12);
23
24 explicit
25 QuadratureGaussLegendre(unsigned int N,
26 bool verbose=false,
27 unsigned int max_iters=1000,
28 double tol=1.0e-12);
29
30private:
31 void Initialize(unsigned int N, bool verbose,
32 unsigned int max_iters, double tol);
33
34 static std::vector<double> FindRoots(unsigned int N,
35 unsigned int max_iters=1000,
36 double tol=1.0e-12);
37};
38
39#endif
void Initialize(unsigned int N, bool verbose, unsigned int max_iters, double tol)
QuadratureGaussLegendre(const chi::InputParameters &params)
static chi::InputParameters GetInputParameters()
static std::vector< double > FindRoots(unsigned int N, unsigned int max_iters=1000, double tol=1.0e-12)
QuadratureOrder
Definition: quadrature.h:12