hmf.core._kernels.mass_function.cumulative_from_top

hmf.core._kernels.mass_function.cumulative_from_top(panels: ArrayLike) → ndarray[tuple[Any, ...], dtype[float64]][source]

The sums of panels from the top down: the integral from each node to the top.

Parameters:

panels – The integrals over consecutive panels, the last one ending at the top node, along the last axis.

Returns:

One more element along the last axis than panels: element i is the sum of panels i and above, accumulated from the top panel down (so it is the same however many panels lie below it), and the last element, at the top node, is 0.

Return type:

numpy.ndarray