legendre.hh

Go to the documentation of this file.
1 
6 #ifndef legendre_hh
7 #define legendre_hh
8 
9 #include <iostream>
10 #include "basics/typedefs.hh"
11 #include "quadRule.hh"
12 #include "shapefunction.hh"
13 #include "toolbox/flyweight.hh"
14 
15 namespace concepts {
24  class Legendre: public ShapeFunction1D<Real> {
25  public:
31  Legendre(const int P, const QuadratureRule1d& quadrature);
37  Legendre(const int P, const Array<Real>& abscissas);
38 
45  Legendre(const int P, const Real* xP, const int NxP);
46 
52  Legendre(const int P, const Real & xP);
53 
55  Legendre(const Legendre& Other);
58 
59  protected:
61  void init(const int P, const Real* xPoints, const int NxP);
62 
63  virtual std::ostream& info(std::ostream& os) const;
64 
65  };
66 
67 }//namespace
68 
69 #endif //legendre_hh
Class representing Legendre polynomials evaluated on quadrature points.
Definition: legendre.hh:24
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
void init(const int P, const Real *xPoints, const int NxP)
Legendre(const int P, const Real &xP)
Constructor.
Legendre(const int P, const Real *xP, const int NxP)
Constructor.
Legendre(const Legendre &Other)
Legendre(const int P, const Array< Real > &abscissas)
Constructor.
Quadrature rule for numerical integration.
Definition: quadRule.hh:30
Legendre(const int P, const QuadratureRule1d &quadrature)
Constructor.
Abstract class for 1D shape function.
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