#include <complex.h>
Go to the source code of this file.
|
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) |
|
◆ 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] | flm | Random spherical harmonic coefficients generated. |
[in] | L | Harmonic band-limit. |
[in] | spin | Spin number. |
[in] | seed | Integer seed required for random number generator. |
- Return values
-
- 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] | flm | Random spherical harmonic coefficients generated. |
[in] | L | Harmonic band-limit. |
[in] | seed | Integer seed required for random number generator. |
- Return values
-
- 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] | flm | Random spherical harmonic coefficients generated. |
[in] | L0 | Lower harmonic band-limit. |
[in] | L | Upper harmonic band-limit. |
[in] | spin | Spin number. |
[in] | seed | Integer seed required for random number generator. |
- Return values
-
- 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] | flm | Random spherical harmonic coefficients generated. |
[in] | L0 | Lower harmonic band-limit. |
[in] | L | Upper harmonic band-limit. |
[in] | seed | Integer seed required for random number generator. |
- Return values
-
- Author
- Jason McEwen
◆ max()
◆ 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
-
- Return values
-
ran_dp | Generated uniform deviate. |
- Author
- Jason McEwen