This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
API decisions for all solvers #4
Closed
Description
I think the API to these solvers is sometimes a bit confusing, and would like to propose some improvements. In general, I want the API to be as similar as Matlab's as possible - but that's because I'm coming from that direction. I don't know if e.g. R has this functionality, and if the API is different there, so some of these suggestions might be very biased.
- If the problem is scalar, the output should be a
Vector
rather than aMatrix
with one column. Bothtout
andyout
should be column vectors (but I think that's already the case, right?) - If the problem is not scalar, each row in
yout
should correspond to a time, rather than each column. This is how Matlab does it, and it also makes sense sincetout
andyout
then has the same number of rows, and the rows correspond to each other. - As input, all solvers should accept scalars or vectors for e.g.
y0
, and as return value ofodefun
, to make it easier to use them on scalar problems.
I'd be happy to put some work in towards this, but I'd like to hear your ideas before I start coding =)
Metadata
Metadata
Assignees
Labels
No labels