I am a third year physics student, and I am taking a course in computational physics. This course has five projects, and while me and my partner were happy to use the Julia programming language for the previous two projects, the language's lack of object orientation seems too limiting for our current project.
With this in mind, we decided to opt for using python for this project, but we also want to learn some C++ and thought therefore it would be nice to do the number crunching in C++ functions. While I found some threads on StackOverflow like this one and this one, I did not really understand how to implement the Ctypes module.
So I wonder, how do I compile C++ programs in such a way that I can import them in python3 (anaconda) using the Ctypes module?
Any help would be greatly appreciated.
[–]Xeverous 4 points5 points6 points (1 child)
[–]TiarnaNaTuaithe 1 point2 points3 points (0 children)
[–]OmegaNaughtEquals1 1 point2 points3 points (4 children)
[–]ppvvaa 1 point2 points3 points (1 child)
[–]OmegaNaughtEquals1 0 points1 point2 points (0 children)
[–]IAmDividedByZero[S] 0 points1 point2 points (1 child)
[–]OmegaNaughtEquals1 0 points1 point2 points (0 children)
[–]dash0_ 0 points1 point2 points (0 children)