I want to call functions from a C++ library in a python code, and I don't how it should be done. I am wondering whether it is possible to use numpy.array as input for C++ pointers or whether I need to modify them to transfer from python to C?
-
1csl.name/C-functions-from-Python1478963– 14789632014-06-08 19:01:26 +00:00Commented Jun 8, 2014 at 19:01
-
I am closing this as a duplicate. If you feel that there is part of the question not answered by the duplicate, please separate it into a new question that is clearly distinct from the referenced question.Veedrac– Veedrac2014-06-08 19:54:51 +00:00Commented Jun 8, 2014 at 19:54
Add a comment
|
1 Answer
Similar questions have already been discussed on stackoverflow. Here are some of them:
- Calling C/C++ from python?
- Calling C functions in Python
- Wrapping a C library in Python: C, Cython or ctypes?
About using numpy.array as input for C/C++ function look the answers to the similar question here:
Passing Numpy arrays to a C function for input and output