pub fn solve_ivp_sparse<F>(
f: F,
jac: SparseJacobian<'_>,
t_span: (f64, f64),
y0: &[f64],
method: IvpMethod,
options: IvpOptions,
events: &[Event<'_>],
) -> Result<IvpSolution, ErrorsJSL>Expand description
solve_ivp for large stiff systems with sparse Jacobians (SciPy’s solve_ivp with a sparse
jac or with jac_sparsity). The Newton matrices of Radau (μ/h · I − J, real and complex)
and of LSODA’s BDF corrector (I − h l₀ J) are factorised by the sparse LU
(SparseLu, minimum-degree ordering); Radau’s complex system is solved in its real form
of twice the size. With SparseJacobian::Pattern, the Jacobian is estimated by grouped
forward differences: columns sharing no row are perturbed together (Curtis, Powell and Reid),
so a banded n × n Jacobian costs a few evaluations of f instead of n.