adaptiveQuadRule.hh

Go to the documentation of this file.
1 
7 #ifndef adaptativeQuadRule_hh
8 #define adaptativeQuadRule_hh
9 
10 #include "basics/typedefs.hh"
11 #include "basics/defines.hh"
12 #include "toolbox/array.hh"
13 #include "quadRule.hh"
14 
15 namespace concepts
16 {
17 
18  // *********************** AdaptiveQuadRule1d **
19 
23  template<const intRule ruleType>
25  {
26  public:
29 
32 
35 
37  const Real* abscissas() const {return abscissas_; };
38 
40  const Real* weights() const {return weights_; } ;
41 
43  uint n() const {return n_; };
44 
46  void printRule();
47 
48  protected:
50  void AdaptTo();
51 
57  uint n_;
58  };
59 
60 }
61 
62 #endif
Adaptive quadrature rule for numerical integration.
const Real * abscissas() const
Returns a pointer into the array of the abscissas.
const Real * weights() const
Returns a pointer into the array of the weights.
void AdaptTo()
Adapt computed quadrature rules from (-1,1) to (0,1)
void printRule()
print weights and abscissas to stdout
uint n() const
Returns the number of points.
uint n_
Number of quadrature points.
~AdaptiveQuadratureRule1d()
Default destructor.
AdaptiveQuadratureRule1d(uint n)
Default constructor that takes into account the number of quadrature points.
AdaptiveQuadratureRule1d()
Default constructor.
Quadrature rule for numerical integration.
Definition: quadRule.hh:30
Array< Real > abscissas_
Abscissas.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich