Repository navigation
acb_ode, numerical solution of linear ODEs with polynomial coefficients - #2186
mezzarobba wants to merge 16 commits into
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
Note that @rburing has an implementation of more or less the same algorithm at https://gitlab.inria.fr/ricardo-thomas.buring/d-finite-fun, but
|
2d30eed to
1a5c356
Compare
(differential case)
Mostly LLM-generated. More precisely: - t-fundamental_matrix.c is mostly human-written; - t-apply_diffop.c and t-sum_divconquer.c are full rewrites using LLMs of previous weaker human-written versions; - all others are entirely or mostly LLM-generated. Assisted-By: Claude Opus 4.8 <noreply@anthropic.com> Assisted-By: Claude Opus 5 <noreply@anthropic.com> Assisted-By: Claude Fable 5 <noreply@anthropic.com> Assisted-By: Claude Haiku 5.5 <noreply@anthropic.com> Assisted-By: Claude Sonnet 5.5 <noreply@anthropic.com> Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ok, ready for review! This PR doesn't exactly contain everything I originally wanted to include even in the first version, but I think it can be useful as is, and @simonbrandhorst says he and collaborators are waiting for it to be merged to use it in some research projects. The code is full of todos to which I am planning to come back in follow-up PRs, hopefully in the near future. Same for additional high-level features, alternative algorithms, and optimizations. |
|
hmm, is there any way I could get more information on the two failures than the little that appears in the logs? |
See #2180 (comment) for a (Generally it would be nice to make the test suite print the backtrace in case of a segfault.) |
|
Awsome! Can you point me at the public interface and its most important parts? Then I can take a look. |
|
Thanks Ricardo!
Here is the rendered documentation: The most important parts from a user perspective are the introduction and the first section (Evaluation of fundamental matrices). Depending on what you want to do, you may also be interested in the next two sections. The key parts algorithmically and for advanced usage are Sections 4, 8, and 9. The next things I am planning to add include functions for computing transition matrices along paths (both fixed and with adaptive subdivision) instead of just individual steps, and functions for non-rigorous evaluation in the style of existing |
Assisted-By: Claude Opus 5.5 (claude-opus-5-5)
Assisted-By: Claude Opus 5.5 (claude-opus-5-5)
Conflicts: CMakeLists.txt Makefile.in
|
…rams list Assisted-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Known issue: |
This PR adds the core of a new
acb_odemodule for solving linear differential equations with polynomial coefficients (in other words, evaluating holonomic functions).The main feature at this stage is evaluation of fundamental matrices of differential operators within their disk of convergence (in other words, transition matrices for individual Taylor steps), including tail bounds and support for regular singular points.
LLM usage: The library code added in this PR and its documentation are human-written, but toward the end of the work on this PR, I used LLMs for finding bugs, including via multiple rounds of LLM review of the module and its documentation. Except for the main one, the tests are mostly LLM-generated.