Utilities

General utilities used by Parkipy and parikpy’s users.

Helpers

get_dtype(dtype)

Return a numpy.dtype given a precision specification.

get_array_module([execution_space])

Return the Numpy or Cupy array module used for a specific execution space.

get_execution_space([execution_space])

Return a Kokkos pk.ExecutionSpace object given am execution space specification.