From 4bce82a79a70878b43d20ebb5ddfaa8577c34dd3 Mon Sep 17 00:00:00 2001 From: JunkaiWang-TheoPhy <1181100960@qq.com> Date: Mon, 30 Nov 2026 17:20:23 +0800 Subject: [PATCH] =?UTF-8?q?Document=20the=20first=20Runge=E2=80=93Kutta=20?= =?UTF-8?q?stage=20time=20in=20ButcherTableau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- diffrax/_solver/runge_kutta.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/diffrax/_solver/runge_kutta.py b/diffrax/_solver/runge_kutta.py index 9473ab44..368237c0 100644 --- a/diffrax/_solver/runge_kutta.py +++ b/diffrax/_solver/runge_kutta.py @@ -180,7 +180,12 @@ def __post_init__(self): differenced against `b_sol` prior to evaluation. (i.e. `b_error` gives the linear combination for producing the error estimate directly, not for producing some alternate solution that is compared against the main solution). -- `c`: the time increments used in the Butcher tableau. +- `c1`: the time of the first stage as a fraction of the step, measured from its + start. Defaults to `0.0`, so the first stage is evaluated at the start of the + step. For an implicit first stage, set this to the first node of your tableau. +- `c`: a NumPy array of shape `(k - 1,)` giving the corresponding fractions for + stages 2 through `k`. For example, the last stage is evaluated at the end of + the step if its fraction is `1`. - `a_diagonal`: optional. The diagonal of the Butcher tableau. Should be `None` or a NumPy array of shape `(k,)`. Used for diagonal implicit Runge--Kutta methods only. - `a_predictor`: optional. Used in a similar way to `a_lower`; specifies the linear