hmfast.halos.concentration.ConstantConcentration

class hmfast.halos.concentration.ConstantConcentration(c)[source]

Bases: Concentration

Constant concentration-mass relation.

Agnostic to the choice of mass definition.

The concentration parameter \(c_\Delta\) is fixed to a user-specified value for all halos.

Methods

c_delta(cosmology, m, z[, mass_def])

Returns a constant value for the concentration parameter, broadcast to the shape of the input masses and redshifts.

c_delta(cosmology, m, z, mass_def=<hmfast.halos.massdef.MassDefinition object>)[source]

Returns a constant value for the concentration parameter, broadcast to the shape of the input masses and redshifts.

Parameters:
cosmologyCosmology

Cosmology used to evaluate the concentration relation.

marray-like

Halo masses in physical \(M_\odot\).

zarray-like

Redshifts.

mass_defMassDefinition, optional

Target halo mass definition. Included for API consistency.

Returns:
float or array-like

Concentration values with shape \((N_m, N_z)\), where singleton dimensions get squeezed before return.