libftsh
A Fast Transform for Spherical Harmonics
|
Hold data and workspace to do the three-term recurrence for a vector of sample points. More...
#include <libftsh.h>
Data Fields | |
int | numpts |
REAL ** | sofar |
int * | size |
REAL * | ex |
REAL * | why |
Hold data and workspace to do the three-term recurrence for a vector of sample points.
An array of size (numpts+1)/2, holding cos(theta_i) where theta_i are your sampling points.
int numpts |
The number of sample points. For spherical harmonic usage this is number of latitudes. We assume the samples are symmetric about PI/2 (we are on [0,PI]). We only compute values at (numpts+1)/2 values, since the others are obtained by reflection.
int* size |
An array of size (numpts+1)/2 containing an extracted power of 2. To get true values from sofar, multiply by 2^size for the corresponding point.
An array of size 2x(numpts+1)/2 (ie sofar[2][(numpts+1)/2]). This will contain samples of the previous two Pmn's (at n-1 and n-2) with their overall size stored separately in size.
An array of size (numpts+1)/2, holding sin(theta_i) where theta_i are your sampling points.