-
Hi,
What's the correct way to bind it to python with nanobind ? sorry, I feel the answer of my question is very obvious but I don't find any answer/example in the doc and I'm not familiar with python. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would suggest you bind a lambda that accepts
Then you would invoke it from Python like |
Beta Was this translation helpful? Give feedback.
-
Thanks, it's working ! |
Beta Was this translation helpful? Give feedback.
I would suggest you bind a lambda that accepts
std::vector
and adapts to the interface of PrintFloats. Something like:Then you would invoke it from Python like
PrintFloats([10, 11, 12])
.