Skip to content
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
@tomasaschan

Description

@tomasaschan

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 a Matrix with one column. Both tout and yout 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 since tout and yout 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 of odefun, 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions