1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Butcher Tableau
// Explicit Runge-Kutta methods
// Implicit Runge-Kutta methods
// Diagonally Implicit Runge-Kutta methods
use crateReal;
/// Butcher Tableau structure for Runge-Kutta methods.
///
/// A Butcher tableau encodes the coefficients of a Runge-Kutta method and provides the
/// necessary components for solving ordinary differential equations. This implementation
/// includes support for embedded methods (for error estimation) and dense output through interpolation.
///
/// # Generic Parameters
/// - `T`: The type of the coefficients, typically a floating-point type (e.g., `f32`, `f64`).
/// - `S`: Number of stages in the method.
/// - `I`: Primary Stages plus extra stages for interpolation (default is equal to `S`).
///
/// # Fields
/// - `c`: Node coefficients (time steps within the interval).
/// - `a`: Runge-Kutta matrix coefficients (coupling between stages).
/// - `b`: Weight coefficients for the primary method's final stage.
/// - `bh`: Weight coefficients for the embedded method (used for error estimation).
/// - `bi`: Weight coefficients for the interpolation method (used for dense output).
/// - `er`: Error estimation coefficients (optional, not all adaptive methods have these).
///
/// These allow approximation at any point within the integration step.
///