kokkos / pykokkos-base

Python bindings for data interoperability with Kokkos (View, DynRankView)
Other
26 stars 9 forks source link

Add the C++ type to the bindings of `View` to enable explicit casting #51

Closed JBludau closed 2 years ago

JBludau commented 2 years ago

As the views are represented as python objects when handled in python, it would be good to know the c++ type that they can be cast into, e.g. using the .cast<Kokkos::View...>() functionality. If another library wants to write their own python bindings, they can use the explicit cast without having to figure out which c++ type the view they got passed as a python object is.

JBludau commented 2 years ago

ci failures are unrelated