Ssht  1.3.3
Fast and exact spin spherical harmonic transforms
Functions
utilities.h File Reference
#include <complex.h>
Include dependency graph for utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double ran2_dp (int idum)
 
void gen_flm_complex (complex double *flm, int L, int spin, int seed)
 
void gen_flm_real (complex double *flm, int L, int seed)
 
void gen_lb_flm_complex (complex double *flm, int L_zero, int L, int spin, int seed)
 
void gen_lb_flm_real (complex double *flm, int L0, int L, int seed)
 
int max (int a, int b)
 

Function Documentation

◆ gen_flm_complex()

void gen_flm_complex ( complex double *  flm,
int  L,
int  spin,
int  seed 
)

Generate random spherical harmonic coefficients of a complex signal.

Parameters
[out]flmRandom spherical harmonic coefficients generated.
[in]LHarmonic band-limit.
[in]spinSpin number.
[in]seedInteger seed required for random number generator.
Return values
none
Author
Jason McEwen

◆ gen_flm_real()

void gen_flm_real ( complex double *  flm,
int  L,
int  seed 
)

Generate random spherical harmonic coefficients of a real spin=0 signal.

Parameters
[out]flmRandom spherical harmonic coefficients generated.
[in]LHarmonic band-limit.
[in]seedInteger seed required for random number generator.
Return values
none
Author
Jason McEwen

◆ gen_lb_flm_complex()

void gen_lb_flm_complex ( complex double *  flm,
int  L0,
int  L,
int  spin,
int  seed 
)

Generate random spherical harmonic coefficients of a complex signal with lower band-limit.

Parameters
[out]flmRandom spherical harmonic coefficients generated.
[in]L0Lower harmonic band-limit.
[in]LUpper harmonic band-limit.
[in]spinSpin number.
[in]seedInteger seed required for random number generator.
Return values
none
Author
Jason McEwen

◆ gen_lb_flm_real()

void gen_lb_flm_real ( complex double *  flm,
int  L0,
int  L,
int  seed 
)

Generate random spherical harmonic coefficients of a real spin=0 signal with lower band-limit.

Parameters
[out]flmRandom spherical harmonic coefficients generated.
[in]L0Lower harmonic band-limit.
[in]LUpper harmonic band-limit.
[in]seedInteger seed required for random number generator.
Return values
none
Author
Jason McEwen

◆ max()

int max ( int  a,
int  b 
)

◆ ran2_dp()

double ran2_dp ( int  idum)

Generate uniform deviate in range [0,1) given seed. (Using double precision.)

Note
Uniform deviate (Num rec 1992, chap 7.1), original routine said to be 'perfect'.
Parameters
[in]idumSeed.
Return values
ran_dpGenerated uniform deviate.
Author
Jason McEwen