libftsh
A Fast Transform for Spherical Harmonics
|
Perform the direct1 spherical harmonic transform. More...
#include "libftsh.h"
Defines | |
#define | ENTEREXIT 0 |
Functions | |
void | Pm_direct1_analyse (REAL *outcoef, Pm_Direct_d *inmat, REAL *infcn, Pm_1D_Workspace *pmnwork) |
void | Pm_direct1_synthesize (REAL *outfcn, Pm_Direct_d *inmat, REAL *incoef, Pm_1D_Workspace *pmnwork) |
Perform the direct1 spherical harmonic transform.
Summary:
void Pm_direct1_analyse | ( | REAL * | outcoef, |
Pm_Direct_d * | inmat, | ||
REAL * | infcn, | ||
Pm_1D_Workspace * | pmnwork | ||
) |
Expand (analyses) a function into spherical harmonic coefficients.
This routine only does one order (m) so it is really only an Associated Legendre Function analyser.
INPUTS:
OUTPUTS: outcoef -- an array of the coefficients computed. The information on how many of these to compute is encoded by the number of rows in inmat.
NOTES:
void Pm_direct1_synthesize | ( | REAL * | outfcn, |
Pm_Direct_d * | inmat, | ||
REAL * | incoef, | ||
Pm_1D_Workspace * | pmnwork | ||
) |
Evaluates (synthesizes) a function from spherical harmonic coefficients.
This routine only does one order (m) so it is really only an Associaded Legendre Function synthesizer.
INPUTS:
OUTPUTS: outfcn -- an array of REALs to hold the computed function. Its length is encoded in the number of columns in inmat
NOTES: