Method

NumCosmoHaloDensityProfileeval_density_array

Declaration [src]

GArray*
nc_halo_density_profile_eval_density_array (
  NcHaloDensityProfile* dp,
  NcHICosmo* cosmo,
  GArray* r,
  gdouble fin,
  gdouble fout,
  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: An array of double

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

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

Type: gdouble

Input array factor.

fout

Type: gdouble

Output array factor.

z

Type: const gdouble

Redshift $z$.

Return value

Type: An array of double

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

The caller of the method takes ownership of the returned data, and is responsible for freeing it.