GrowthSolution

class hmf.core.growth_models.GrowthSolution(tables: Mapping[str, GrowthTable], z_max: float, run: BoltzmannRun | None = None)[source]

The growth factor and rate of every matter species, from one model evaluation.

The result of GrowthModel.solve(), a read-only data holder: plain arrays of redshift in, plain arrays out. It is valid for 0 <= z <= z_max and does not check its input: outside that range its methods return NaN. Library code calls the checked kernel-level entry points, Growth.growth_factor_kernel and Growth.growth_rate_kernel.

Attributes

tables: Mapping[str, GrowthTable]

The tabulated growth of each species.

z_max: float

The largest redshift it covers.

run: BoltzmannRun | None

The Boltzmann run it came from, if any.

Methods

growth_factor(z: ndarray[tuple[Any, ...], dtype[float64]], species: str = 'cb') → ndarray[tuple[Any, ...], dtype[float64]][source]

D(z)/D(0) of species (NaN outside 0 <= z <= z_max).

growth_rate(z: ndarray[tuple[Any, ...], dtype[float64]], species: str = 'cb') → ndarray[tuple[Any, ...], dtype[float64]][source]

The growth rate d ln D / d ln a of species (NaN outside the table).