Skip to content

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

Notifications You must be signed in to change notification settings

dvida/py-ctypes-multidimensional-arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published