| NFFT 3.5.0

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

legendre.h
1 /*
2 * Copyright (c) 2002, 2017 Jens Keiner, Stefan Kunis, Daniel Potts
3 *
4 * This program is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation; either version 2 of the License, or (at your option) any later
7 * version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12 * details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 51
16 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
27 #ifndef LEGENDRE_H
28 #define LEGENDRE_H
29
30 #include "infft.h"
31
36 void alpha_al_row(R *alpha, const int N, const int n);
37 void beta_al_row(R *beta, const int N, const int n);
38 void gamma_al_row(R *gamma, const int N, const int n);
39
49 void alpha_al_all(R *alpha, const int N);
50
60 void beta_al_all(R *beta, const int N);
61
71 void gamma_al_all(R *gamma, const int N);
72
88 void eval_al(R *x, R *y, const int size, const int k, R *alpha,
89 R *beta, R *gamma);
90
107 int eval_al_thresh(R *x, R *y, const int size, const int k, R *alpha,
108 R *beta, R *gamma, R threshold);
109 /* \} */
110 #endif
alpha_al_all
void alpha_al_all(R *alpha, const int N)
Compute three-term-recurrence coefficients of associated Legendre functions for .
Definition: legendre.c:89
eval_al_thresh
int eval_al_thresh(R *x, R *y, const int size, const int k, R *alpha, R *beta, R *gamma, R threshold)
Evaluates an associated Legendre polynomials using the Clenshaw-algorithm if it no exceeds a given t...
Definition: legendre.c:161
beta_al_all
void beta_al_all(R *beta, const int N)
Compute three-term-recurrence coefficients of associated Legendre functions for .
Definition: legendre.c:98
gamma_al_all
void gamma_al_all(R *gamma, const int N)
Compute three-term-recurrence coefficients of associated Legendre functions for .
Definition: legendre.c:107
eval_al
void eval_al(R *x, R *y, const int size, const int k, R *alpha, R *beta, R *gamma)
Evaluates an associated Legendre polynomials using the Clenshaw-algorithm.
Definition: legendre.c:116