diff options
author | Franz Zotter <fzotter@users.sourceforge.net> | 2009-01-12 17:09:13 +0000 |
---|---|---|
committer | Franz Zotter <fzotter@users.sourceforge.net> | 2009-01-12 17:09:13 +0000 |
commit | 55253e4e15b093a0826fc10b376f7724cea2ba7e (patch) | |
tree | 1e1c06129db9f86a12daddcf7c985d530d0872d9 /src/mtx_sh/sharmonics_normalization.h | |
parent | bacae787abd380690126e6adf82ab0cd19f5abec (diff) |
added [mtx_sh] for spherical harmonics evaluation.
svn path=/trunk/externals/iem/iemmatrix/; revision=10515
Diffstat (limited to 'src/mtx_sh/sharmonics_normalization.h')
-rw-r--r-- | src/mtx_sh/sharmonics_normalization.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mtx_sh/sharmonics_normalization.h b/src/mtx_sh/sharmonics_normalization.h new file mode 100644 index 0000000..f837233 --- /dev/null +++ b/src/mtx_sh/sharmonics_normalization.h @@ -0,0 +1,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 |