hmf.core._kernels.lattice.lattice

hmf.core._kernels.lattice.lattice(i_lo: int, i_hi: int, step: float) → ndarray[tuple[Any, ...], dtype[float64]][source]

The positions of the lattice nodes i_lo to i_hi (both included).

Parameters:
  • i_lo – The indices of the first and last nodes.

  • i_hi – The indices of the first and last nodes.

  • step – The spacing of the lattice.

Returns:

i * step for each integer i from i_lo to i_hi, computed as one product per node, so the same node has the same value in every lattice.

Return type:

numpy.ndarray