https://docs.python.org/3/extending/extending.html
shows how to compile C code that uses <Python.h> to make a module for importing in Python.
worth thinking about this kind of stuff for heavier ops.
Here I transcribed two youtube videos which very lightly explain the topic. https://github.com/zeffii/Learning_C_TheHardWay_studynotes/blob/master/python_cmodule.md
http://stackoverflow.com/questions/25459479/how-to-return-an-c-array-to-python
https://docs.python.org/3/extending/extending.html
shows how to compile C code that uses
<Python.h>to make a module for importing in Python.worth thinking about this kind of stuff for heavier ops.
Here I transcribed two youtube videos which very lightly explain the topic. https://github.com/zeffii/Learning_C_TheHardWay_studynotes/blob/master/python_cmodule.md
http://stackoverflow.com/questions/25459479/how-to-return-an-c-array-to-python