Method

NumCosmoHaloDensityProfileeval_density

Declaration [src]

gdouble
nc_halo_density_profile_eval_density (
  NcHaloDensityProfile* dp,
  NcHICosmo* cosmo,
  const gdouble r,
  const gdouble z
)

Description [src]

This function computes the density profile in real space.

Parameters

cosmo

Type: NcHICosmo

A NcHICosmo.

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

Type: const gdouble

Radius $r\;\left[\mathrm{Mpc}\right]$.

z

Type: const gdouble

Redshift $z$.

Return value

Type: gdouble

The value of the density profile $\rho(r)\;\left[M_\odot\times\mathrm{Mpc}^{-3}\right]$.