NFFT 3.5.3alpha
wigner.h
Go to the documentation of this file.
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
26#ifndef WIGNER_H
27#define WIGNER_H
28
37double SO3_alpha(int k, int m, int l);
46double SO3_beta(int k, int m, int l);
55double SO3_gamma(int k, int m, int l);
65void SO3_alpha_row(double *alpha, int N, int m, int n);
75void SO3_beta_row(double *beta, int N, int m, int n);
85void SO3_gamma_row(double *gamma, int N, int m, int n);
95void SO3_alpha_matrix(double *alpha, int N, int n);
105void SO3_beta_matrix(double *beta, int N, int n);
115void SO3_gamma_matrix(double *gamma, int N, int n);
116
125void SO3_alpha_all(double *alpha, int N);
134void SO3_beta_all(double *beta, int N);
143void SO3_gamma_all(double *gamma, int N);
144
160void eval_wigner(double *x, double *y, int size, int l, double *alpha,
161 double *beta, double *gamma);
178int eval_wigner_thresh(double *x, double *y, int size, int l, double *alpha,
179 double *beta, double *gamma, double threshold);
180
193double wigner_start(int n1, int n2, double theta);
194
195#endif
void SO3_beta_row(double *beta, int N, int m, int n)
Compute three-term-recurrence coefficients of Wigner-d functions for all degrees .
Definition wigner.c:96
void SO3_gamma_row(double *gamma, int N, int m, int n)
Compute three-term-recurrence coefficients of Wigner-d functions for all degrees .
Definition wigner.c:104
void SO3_gamma_all(double *gamma, int N)
Compute three-term-recurrence coefficients of Wigner-d functions for all and .
Definition wigner.c:198
double SO3_beta(int k, int m, int l)
Computes three-term recurrence coefficients of Wigner-d functions.
Definition wigner.c:52
double SO3_gamma(int k, int m, int l)
Computes three-term recurrence coefficients of Wigner-d functions.
Definition wigner.c:73
double wigner_start(int n1, int n2, double theta)
A method used for debugging, gives the values to start the "old" three-term recurrence generates WHE...
Definition wigner.c:317
void SO3_beta_matrix(double *beta, int N, int n)
Compute three-term-recurrence coefficients of Wigner-d functions for all order and degrees .
Definition wigner.c:128
void eval_wigner(double *x, double *y, int size, int l, double *alpha, double *beta, double *gamma)
Evaluates Wigner-d functions using the Clenshaw-algorithm.
Definition wigner.c:215
void SO3_alpha_matrix(double *alpha, int N, int n)
Compute three-term-recurrence coefficients of Wigner-d functions for all order and degrees .
Definition wigner.c:114
void SO3_beta_all(double *beta, int N)
Compute three-term-recurrence coefficients of Wigner-d functions for all and .
Definition wigner.c:181
void SO3_gamma_matrix(double *gamma, int N, int n)
Compute three-term-recurrence coefficients of Wigner-d functions for all order and degrees .
Definition wigner.c:142
double SO3_alpha(int k, int m, int l)
Computes three-term recurrence coefficients of Wigner-d functions.
Definition wigner.c:25
int eval_wigner_thresh(double *x, double *y, int size, int l, double *alpha, double *beta, double *gamma, double threshold)
Evaluates Wigner-d functions using the Clenshaw-algorithm if it not exceeds a given threshold.
Definition wigner.c:260
void SO3_alpha_row(double *alpha, int N, int m, int n)
Compute three-term-recurrence coefficients of Wigner-d functions for all degrees .
Definition wigner.c:88
void SO3_alpha_all(double *alpha, int N)
Compute three-term-recurrence coefficients of Wigner-d functions for all and .
Definition wigner.c:158