Method

NumCosmoWLSurfaceMassDensityLensCtxprep

Declaration [src]

void
nc_wl_surface_mass_density_lens_ctx_prep (
  NcWLSurfaceMassDensityLensCtx* ctx,
  NcWLSurfaceMassDensity* smd,
  NcHICosmo* cosmo,
  const gdouble zl
)

Description [src]

Precomputes the lens-side constants (curvature, comoving distance, sigma_crit prefactor) used by repeated #nc_wl_surface_mass_density_reduced_shear_crit_cache_prep_with_lens_ctx() calls that share the same cosmo and zl. Hoists cosmology getters and one comoving-distance evaluation out of an inner-loop call site.

This method is not directly available to language bindings.

Parameters

smd

Type: NcWLSurfaceMassDensity

A NcWLSurfaceMassDensity.

The data is owned by the caller of the method.
cosmo

Type: NcHICosmo

A NcHICosmo.

The data is owned by the caller of the method.
zl

Type: const gdouble

Lens redshift $z_\mathrm{lens}$.