Yesterday, I did not write this diary because there are too many jobs.
Recently, I have used nanobind to connect C++ and Python. Still, I did not know how to return multiple values from C++ functions to Python and I separated an optimal function into some tiny functions, which is not efficient. Yesterday, I really needed to implement multiple values returned from a function, and I read the nanobind document again. Then, I knew to use "tuple." It can be prepared with make_tuple in C++ and it can be received by Python. By using it, efficient coding was enabled.
No comments:
Post a Comment