GrowthTable

class hmf.core._kernels.growth.GrowthTable(ln_a: ndarray[tuple[Any, ...], dtype[float64]], ln_d: ndarray[tuple[Any, ...], dtype[float64]], f: ndarray[tuple[Any, ...], dtype[float64]], ln_d_spline: FrozenSpline, f_spline: FrozenSpline)[source]

A growth factor and rate tabulated in ln a, normalised to D = 1 at a = 1.

Both are interpolated with cubic splines (ln D and f in ln a). Build it with tabulate_growth(). Neither is extrapolated: outside the table (z < 0 or z > z_max) both are NaN. A redshift that maps to within LN_A_ATOL below the first node, from round-off in ln a = -ln(1 + z), is evaluated at that node.

Attributes

ln_a: ndarray[tuple[Any, ...], dtype[float64]]

The nodes, in ln a (increasing, ending at 0).

ln_d: ndarray[tuple[Any, ...], dtype[float64]]

ln D at the nodes (0 at a = 1).

f: ndarray[tuple[Any, ...], dtype[float64]]

The growth rate at the nodes.

ln_d_spline: FrozenSpline

The spline of ln D in ln a.

f_spline: FrozenSpline

The spline of f in ln a.

z_max

The largest redshift of the table.

Methods

growth_factor(z: ndarray[tuple[Any, ...], dtype[float64]]) → ndarray[tuple[Any, ...], dtype[float64]][source]

The normalised growth factor at redshifts z (NaN outside the table).

Parameters:

z – Redshifts (dimensionless).

Returns:

D(z)/D(0), with the shape of z.

Return type:

numpy.ndarray

growth_rate(z: ndarray[tuple[Any, ...], dtype[float64]]) → ndarray[tuple[Any, ...], dtype[float64]][source]

The growth rate at redshifts z (NaN outside the table).

Parameters:

z – Redshifts (dimensionless).

Returns:

d ln D / d ln a, with the shape of z.

Return type:

numpy.ndarray