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?

2
  • 1
    csl.name/C-functions-from-Python Commented 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. Commented Jun 8, 2014 at 19:54

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.