aboutsummaryrefslogtreecommitdiff
path: root/src/mtx_sh/sharmonics_normalization.h
blob: f837233413b1d7df1919ec291f0429ddc5e9d904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Recursive computation of (arbitrary degree) normalization constants
 * for spherical harmonics, according to Gumerov and Duraiswami,
 * "The Fast Multipole Methods for the Helmholtz Equation in Three Dimensions",
 * Elsevier, 2005.
 *
 * Implementation by Franz Zotter, Institute of Electronic Music and Acoustics
 * (IEM), University of Music and Dramatic Arts (KUG), Graz, Austria
 * http://iem.at/Members/zotter, 2008.
 *
 * This code is published under the Gnu General Public License, see
 * "LICENSE.txt"
 */


#ifndef _sharmonics_normalization_h__
#define _sharmonics_normalization_h__
#include <math.h>
#include <stdlib.h>

typedef struct _SHNorml_
{
   double *n;
   size_t nmax;
} SHNorml;

SHNorml *sharmonics_normalization_new (const size_t nmax);

void sharmonics_normalization_free (SHNorml *wn);

#endif