#include <ortho_poly.h>
Inheritance diagram for Chebyshev_poly:

Public Member Functions | |
| Chebyshev_poly (int ni) | |
| Standard constructor. | |
| Chebyshev_poly (const Chebyshev_poly &) | |
| Copy constructor. | |
| virtual | ~Chebyshev_poly () |
| Destructor. | |
| void | operator= (const Chebyshev_poly &) |
| Assignment to another Chebyshev_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 (square of the polynomial no. | |
| 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 (square of the polynomial no. | |
| void | coef_interpolant_GL_FFT (double(*f)(double), double *cf) const |
| Coefficients of the interpolant polynomial through the Gauss-Lobatto nodes via a FFT. | |
| virtual void | coef_projection (double(*f)(double), double *cf) const |
| Coefficients of the expansion over the Chebyshev 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 Chebyshev polynomials
up to a given degree N.
Definition at line 227 of file ortho_poly.h.
|
|
Standard constructor.
Definition at line 58 of file chebyshev_poly.C. |
|
|
Copy constructor.
Definition at line 64 of file chebyshev_poly.C. |
|
|
Destructor.
Definition at line 71 of file chebyshev_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 interpolant polynomial through the Gauss-Lobatto nodes via a FFT.
Definition at line 232 of file chebyshev_poly.C. References gauss_lobatto_nodes(), and Ortho_poly::nn. |
|
||||||||||||
|
Coefficients of the expansion over the Chebyshev polynomials of the orthogonal projection on the space of polynomials of maximum degree N.
Implements Ortho_poly. Definition at line 254 of file chebyshev_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 163 of file chebyshev_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 209 of file chebyshev_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 chebyshev_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 chebyshev_poly.C. References Ortho_poly::nn, and Ortho_poly::p_gauss_lobatto_weights. |
|
|
Gauss nodes.
Implements Ortho_poly. Definition at line 138 of file chebyshev_poly.C. References Ortho_poly::nn, and Ortho_poly::p_gauss_nodes. |
|
|
Gauss weights.
Implements Ortho_poly. Definition at line 149 of file chebyshev_poly.C. References Ortho_poly::nn, and 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 111 of file chebyshev_poly.C. References Ortho_poly::nn. |
|
|
Assignment to another Chebyshev_poly.
Definition at line 78 of file chebyshev_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 100 of file chebyshev_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. |
1.4.6