SHTns 3.7
|
To make SHTns known by your C program, add
in the preamble of your source file.
First of all you need to initialize SHTns. There are two ways to do this :
Multi-threaded transforms can be enabled (if available, see Compiling and installing SHTns) by a call to shtns_use_threads before shtns_init or shtns_create.
Then you must allocate some memory (with fftw_malloc so that the memory is properly aligned for vectorized code), and finally you can perform some spherical harmonic transforms.
When your program is ready, compile it adding these options to the compiler (gcc) :