Constructor

NumCosmoHaloDensityProfileHernquistnew

Declaration [src]

NcHaloDensityProfileHernquist*
nc_halo_density_profile_hernquist_new (
  NcHaloMassSummary* hms
)

Description [src]

This function returns the NcHaloDensityProfileHernquist implementation of NcHaloDensityProfile given NcHaloMassSummary.

Parameters

hms

Type: NcHaloMassSummary

A NcHaloMassSummary.

The data is owned by the caller of the function.

Return value

Type: NcHaloDensityProfileHernquist

A new instance of NcHaloDensityProfileHernquist.

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