legendre.h
/*
* Copyright (c) 2002, 2017 Jens Keiner, Stefan Kunis, Daniel Potts
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef LEGENDRE_H
#define LEGENDRE_H
#include "infft.h"
void alpha_al_row(R *alpha, const int N, const int n);
void beta_al_row(R *beta, const int N, const int n);
void gamma_al_row(R *gamma, const int N, const int n);
void alpha_al_all(R *alpha, const int N);
void beta_al_all(R *beta, const int N);
void gamma_al_all(R *gamma, const int N);
void eval_al(R *x, R *y, const int size, const int k, R *alpha,
R *beta, R *gamma);
int eval_al_thresh(R *x, R *y, const int size, const int k, R *alpha,
R *beta, R *gamma, R threshold);
/* \} */
#endif
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
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
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
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
infft.h
Internal header file for auxiliary definitions and functions.