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_lotoi_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 * stepfor each integerifromi_lotoi_hi, computed as one product per node, so the same node has the same value in every lattice.- Return type: