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 for0 <= z <= z_maxand does not check its input: outside that range its methods return NaN. Library code calls the checked kernel-level entry points,Growth.growth_factor_kernelandGrowth.growth_rate_kernel.Attributes
- tables: Mapping[str, GrowthTable]¶
The tabulated growth of each species.
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 outside0 <= z <= z_max).- Parameters:
z – Redshifts (dimensionless).
species –
"cb"or"tot".
- Returns:
D(z)/D(0), with the shape of
z.- Return type:
- Raises:
ValueError – If
speciesis not one ofMATTER_SPECIES.
- 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).- Parameters:
z – Redshifts (dimensionless).
species –
"cb"or"tot".
- Returns:
d ln D / d ln a, with the shape of
z.- Return type:
- Raises:
ValueError – If
speciesis not one ofMATTER_SPECIES.