How to create a request to change a function?
Augusto Dufloth <[email protected]> Fri, 31 Jan 2020 13:28:10 +0900
| Newsgroups | gmane.comp.python.scientific.user |
|---|---|
| Message-ID | <CAJBxEuPe1OkgdTKQBvp2i6kFMWQbMLiNMejYOUAWABu7frDEcQ@mail.gmail.com> |
Hello, I have a request to change one of scipy’s function. I am trying to use odeint to integrate a set of equations of motion. My state equations rely on time dependent inputs. And these inputs are numpy arrays. When I do a flight path reconstruction, the inputs comes from the inertial system of the aircraft and I plug it into the state equations, so I get the deterministic position of the aircraft and than I can compare it to the measured values. The issue is that I can’t input an array. Searching stackoverflow I saw solutions using for-loops and assigning an arg for each time step. This is counter productive and create a huge time calculation for long arrays. I created my own C-dll to deal with this for loop issue, but it’s super counter productive. Can we get an option that the input args are arrays if same size of t, and as the state is integrated, the index of the arg follows the states? Thanks for your help Augusto -- "The greatest challenge to any thinker is stating the problem in a way that will allow a solution." - Bertrand Russell _______________________________________________ SciPy-User mailing list [email protected] https://mail.python.org/mailman/listinfo/scipy-user