Skip to content

Improve Array/View Conversion API Consistency #325

Description

@Sichao25

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions