#include <ortho_poly.h>
Inheritance diagram for Legendre_poly:
Public Member Functions | |
Legendre_poly (int ni) | |
Standard constructor. | |
Legendre_poly (const Legendre_poly &) | |
Copy constructor. | |
virtual | ~Legendre_poly () |
Destructor. | |
void | operator= (const Legendre_poly &) |
Assignment to another Legendre_poly. | |
virtual double | weight (double x) const |
Weight function ![]() | |
virtual double | operator() (int i, double x) const |
Value of the polynomial ![]() | |
virtual const Grid & | gauss_nodes () const |
Gauss nodes. | |
virtual double | gauss_weight (int i) const |
Gauss weights. | |
virtual double | gauss_gamma (int i) const |
Gamma factor ![]() | |
virtual const Grid & | gauss_lobatto_nodes () const |
Gauss-Lobatto nodes. | |
virtual double | gauss_lobatto_weight (int i) const |
Gauss-Lobatto weights. | |
virtual double | gauss_lobatto_gamma (int i) const |
Gamma factor ![]() | |
virtual void | coef_projection (double(*f)(double), double *cf) const |
Coefficients of the expansion over the Legendre polynomials of the orthogonal projection on the space of polynomials of maximum degree N. | |
int | n () const |
returns N, i.e. the maximum degree of the polynomials | |
void | coef_interpolant_Gauss (double(*f)(double), double *cf) const |
Coefficients of the interpolant polynomial through the Gauss nodes. | |
void | coef_interpolant_GL (double(*f)(double), double *cf) const |
Coefficients of the interpolant polynomial through the Gauss-Lobatto nodes. | |
double | series (const double *a, double x) const |
Value of some expansion over the polynomials: ![]() | |
Protected Attributes | |
const int | nn |
N = maximum degree of the polynomials | |
const Grid * | p_gauss_nodes |
Pointer on the Gauss nodes. | |
double * | p_gauss_weights |
Pointer on the Gauss weights. | |
double * | p_gauss_gamma |
Pointer on the gamma factors (squares of the polynomials with respect to the discrete scalar product associated with the Gauss nodes). | |
const Grid * | p_gauss_lobatto_nodes |
Pointer on the Gauss-Lobatto nodes. | |
double * | p_gauss_lobatto_weights |
Pointer on the Gauss-Lobatto weights. | |
double * | p_gauss_lobatto_gamma |
Pointer on the gamma factors (square of the polynomials with respect to the discrete scalar product associated with the Gauss-Lobatto nodes). |
() Each instance of this class represents a family of Legendre polynomials up to a given degree N.
Definition at line 341 of file ortho_poly.h.
|
Standard constructor.
Definition at line 59 of file legendre_poly.C. |
|
Copy constructor.
Definition at line 65 of file legendre_poly.C. |
|
Destructor.
Definition at line 72 of file legendre_poly.C. |
|
Coefficients of the interpolant polynomial through the Gauss nodes.
Definition at line 128 of file ortho_poly.C. References Ortho_poly::gauss_nodes(), Ortho_poly::gauss_weight(), and Ortho_poly::nn. |
|
Coefficients of the interpolant polynomial through the Gauss-Lobatto nodes.
Definition at line 156 of file ortho_poly.C. References Ortho_poly::gauss_lobatto_nodes(), Ortho_poly::gauss_lobatto_weight(), and Ortho_poly::nn. |
|
Coefficients of the expansion over the Legendre polynomials of the orthogonal projection on the space of polynomials of maximum degree N.
Implements Ortho_poly. Definition at line 234 of file legendre_poly.C. References Ortho_poly::coef_interpolant_GL(), and Ortho_poly::nn. |
|
Gamma factor i with respect to the discrete scalar product associated with the Gauss nodes) Implements Ortho_poly. Definition at line 164 of file legendre_poly.C. References Ortho_poly::nn, and Ortho_poly::p_gauss_gamma. |
|
Gamma factor i with respect to the discrete scalar product associated with the Gauss-Lobatto nodes) Implements Ortho_poly. Definition at line 212 of file legendre_poly.C. References Ortho_poly::nn, and Ortho_poly::p_gauss_lobatto_gamma. |
|
Gauss-Lobatto nodes.
Implements Ortho_poly. Definition at line 179 of file legendre_poly.C. References Ortho_poly::nn, and Ortho_poly::p_gauss_lobatto_nodes. |
|
Gauss-Lobatto weights.
Implements Ortho_poly. Definition at line 190 of file legendre_poly.C. References Ortho_poly::nn, and Ortho_poly::p_gauss_lobatto_weights. |
|
Gauss nodes.
Implements Ortho_poly. Definition at line 139 of file legendre_poly.C. References Ortho_poly::nn, and Ortho_poly::p_gauss_nodes. |
|
Gauss weights.
Implements Ortho_poly. Definition at line 150 of file legendre_poly.C. References Ortho_poly::p_gauss_weights. |
|
returns N, i.e. the maximum degree of the polynomials
Definition at line 117 of file ortho_poly.C. References Ortho_poly::nn. |
|
Value of the polynomial
Implements Ortho_poly. Definition at line 112 of file legendre_poly.C. References Ortho_poly::nn. |
|
Assignment to another Legendre_poly.
Definition at line 79 of file legendre_poly.C. |
|
Value of some expansion over the polynomials:
Definition at line 184 of file ortho_poly.C. References Ortho_poly::nn. |
|
Weight function
Implements Ortho_poly. Definition at line 101 of file legendre_poly.C. |
|
N = maximum degree of the polynomials
Definition at line 57 of file ortho_poly.h. |
|
Pointer on the gamma factors (squares of the polynomials with respect to the discrete scalar product associated with the Gauss nodes).
Definition at line 71 of file ortho_poly.h. |
|
Pointer on the gamma factors (square of the polynomials with respect to the discrete scalar product associated with the Gauss-Lobatto nodes).
Definition at line 85 of file ortho_poly.h. |
|
Pointer on the Gauss-Lobatto nodes.
Definition at line 75 of file ortho_poly.h. |
|
Pointer on the Gauss-Lobatto weights.
Definition at line 79 of file ortho_poly.h. |
|
Pointer on the Gauss nodes.
Definition at line 61 of file ortho_poly.h. |
|
Pointer on the Gauss weights.
Definition at line 65 of file ortho_poly.h. |