hmf.core._kernels.arrays.float_array

hmf.core._kernels.arrays.float_array(x: ArrayLike) → ndarray[tuple[Any, ...], dtype[float64]][source]

Convert to a float array (a no-op for a float array).

Parameters:

x – An array, or anything numpy can convert to one.

Returns:

x as float64, not copied if it already is.

Return type:

numpy.ndarray