hpkfft.com
hpkfft.com
Arsiniy, Please see https://nanobind.readthedocs.io/en/latest/ndarray.html#returning-arrays-from-c-to-python and https://nanobind.readthedocs.io/en/latest/ndarray.html#data-ownership Having nanobind return [DLPack](https://dmlc.github.io/dlpack/latest/) and converting to a specific framework in Python can be a good solution. See: https://nanobind.readthedocs.io/en/latest/ndarray.html#array-libraries For example: ``` #include //...
For reference: [JAX Typing Best Practices](https://docs.jax.dev/en/latest/jax.typing.html#jax-typing-best-practices)
Paul Caprioli