patrick-kidger / patrick-kidger/diffrax
Low Storage Methods
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.1k
- Forks
- 189
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 1
Description
Hi,
I've been working on low-storage Runge-Kutta methods recently, in particular Williamson 2N methods.
These methods compute the ODE flow via a recursive scheme that only uses two registers, so they can be useful in memory-constrained settings like PDE solves. The tradeoff is usually that they need more stages for a given order.
I put together an implementation here: diffrax-lowstorage.
At the moment it includes:
- a 2N solver class with substantially lower memory use at the same order,
- embedded error estimates,
- and two well-known methods.
@patrick-kidger, would there be any interest in merging something like this into Diffrax? I'd be happy to open a PR and make whatever changes you think would be needed.
As far as I know, the only other mainstream library with this kind of support is Diffeq.jl LowStorageRK, so it could be a nice addition.
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the linked diffrax-lowstorage implementation and compare its 2N solver, embedded error estimates, and two methods with Diffrax. The issue does not name repository files or tests; done would require an agreed integration scope and a contribution path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100