shadowk29 / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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.

License:MIT License


Languages

Language:Python 79.4%Language:C 15.5%Language:Makefile 5.1%