Initializes the hmpdf_obj and computes data that is needed for all outputs. This is a convenience macro wrapping hmpdf_init_fct().
- Parameters
-
[in,out] | d | created with hmpdf_new() |
[in] | class_ini | path to a CLASS .ini file |
[in] | stype | signal type (either hmpdf_kappa or hmpdf_tsz) |
[in] | ... | variadic argument list for optional arguments |
- Returns
- error code
- Attention
- if stype=hmpdf_kappa, the first entry in ... must be the source redshift (double)
The syntax to pass additional non-default settings through ... is as follows: A setting is passed as a pair <name>, <value>, where <name> is one of hmpdf_configs_e, and <value> must have the type given in the documentation for that specific <name>.
- Attention
- In this context, be careful with literals passed as <value>, as the compiler will be unable to figure out any necessary casts. For example, if passing a literal as hmpdf_N_signal, it needs to be an explicit long.
For example, to perform a weak lensing calculation with source redshift 1 and all configurations at default except for the number of threads and the pixel sidelength, you would call
- Attention
- perhaps counter-intuitively, successive hmpdf_init() calls are not cumulative (i.e. d retains no internal state between them). Thus, you need to pass all configuration options in a single call to hmpdf_init().