Eigen Matrix and Numpy Array #954
Answered
by
wjakob
petrasvestartas
asked this question in
Q&A
-
Hi, Is there any example that shows numpy to eigen matrix transfer of nested lists? All examples in nanonbind tests are flat arrays: [0,0,0,1,5,8] |
Beta Was this translation helpful? Give feedback.
Answered by
wjakob
Mar 4, 2025
Replies: 1 comment 4 replies
-
There isn't a good solution for taking non-array input at the moment. Basically nanobind expects something that already implements either DLPack or the buffer protocol. I am open to external contributions in this regard but am not working on such a feature myself. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is already the default when returning by value.