I am absolutely new in c++ programming and facing many problems converting a simple python code in c++.

Mainly I am facing four following problems in writing python code in c++.

  • How to write a complex matrix in c++?
  • How to solve a complex first-order system of differential equations in c++?
  • How to solve double integral in c++?
  • How to do parallel processing in c++?
  • I generally prefer to use the libraries like 'Eigen', 'odeint' etc for reliability. But using libraries in c++ is much harder than in python. I want to convert the code from python to c++ for speed. The following code is written in parallel processing using 'pool'. For each 'Time' it takes a huge amount of time in python.

    In the python code I have used 'odeintw' for solving complex differential systems of equations instead of 'solve_ivp' for better speed and 'nquad' instead of 'dblquad' for double integration to increase the 'limit: 500' from default 'limit: 50'.

    It will be very much helpful if someone helps me to write the python code in c++.

    More Debamalya Dutta's questions See All
    Similar questions and discussions