/py-ctypes-multidimensional-arrays

An example how to convert numpy arrays to ctypes 2D and 3D arrays, parse them to C, and get them back after running a C function.

Primary LanguagePythonMIT LicenseMIT

Python Ctypes - Multidimensional arrays

An example how to convert numpy arrays to ctypes 2D and 3D arrays, parse them to C, and get them back after running a C function.

How to run the example:

  1. Make sure you are on Linux, or running Cygwin or MinGW terminal
  2. Navigate to the folder with the Makefile
  3. Run in terminal: make
  4. To run the Python script, run from terminal: python myfunc.py