PCMS currently handles multiple array and view types, including Kokkos views, mdspan, and Omega_h arrays. On the Python API side, we also need to support NumPy arrays and potentially device-side arrays such as Torch tensors in the future.
It would be helpful to have a consistent and clean API for converting between these different array types to mdspan of varying dimensions — similar to how Kokkos provides to_mdspan() as a unified interface for most use cases. Utilities for converting between different array types would also be helpful if there are any use cases in the future.
Currently, a few such conversion functions exist in utility/arrays.h but they do not form a consistent API.
This also address issue #190 .
PCMS currently handles multiple array and view types, including Kokkos views, mdspan, and Omega_h arrays. On the Python API side, we also need to support NumPy arrays and potentially device-side arrays such as Torch tensors in the future.
It would be helpful to have a consistent and clean API for converting between these different array types to
mdspanof varying dimensions — similar to how Kokkos providesto_mdspan()as a unified interface for most use cases. Utilities for converting between different array types would also be helpful if there are any use cases in the future.Currently, a few such conversion functions exist in utility/arrays.h but they do not form a consistent API.
This also address issue #190 .