2

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?

Dalek
  • 4,168
  • 11
  • 48
  • 100
  • 1
    http://csl.name/C-functions-from-Python/ – 1478963 Jun 08 '14 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 Jun 08 '14 at 19:54

1 Answers1

0

Similar questions have already been discussed on stackoverflow. Here are some of them:

  1. Calling C/C++ from python?
  2. Calling C functions in Python
  3. 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

Community
  • 1
  • 1
Delimitry
  • 2,987
  • 4
  • 30
  • 39