hmf.core.growth¶
The Growth stage: the linear growth factor and growth rate as functions of z.
The stage holds a cosmology and a growth model, and optionally the
Transfer stage it goes with. It gives, for each matter
species, the growth factor D(z) (normalised to D(0) = 1) and the growth rate
\(f = d\ln D/d\ln a\). Redshifts are dimensionless and broadcast like numpy:
a scalar gives a scalar (a numpy.float64), an array an array of the same
shape.
If the growth model is backed by the same Boltzmann code as the transfer stage’s
model (CambGrowth with
CAMB, or
ClassGrowth with
CLASS), and both stages have the same
k_accuracy, the growth comes from the transfer’s run: one run for both.
Otherwise such a model makes its own run, at the growth stage’s k_accuracy
(see hmf.core.accuracy).
Library code working in plain arrays (see hmf.core._kernels) calls the
kernel-level entry points Growth.growth_factor_kernel() and
Growth.growth_rate_kernel(), which check z as the public methods do.
Growth.solution is the data behind them: it does not check z, and is NaN
outside the redshifts it covers.
Classes
|
The linear growth factor and growth rate. |