Extract drjit value in C++ #1577
-
Hi. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @hsunekichi, There's no Eigen-specific interoperability that I am aware of, however you should be able to use |
Beta Was this translation helpful? Give feedback.
-
It works, thanks! |
Beta Was this translation helpful? Give feedback.
Hello @hsunekichi,
There's no Eigen-specific interoperability that I am aware of, however you should be able to use
cpu_jit_array = dr::migrate(your_jit_array, AllocType::Host)
to ensure that the data is on the host, and then map the data pointer however you like (cpu_jit_array.data()
).