generate_W(sys) returns an R function (u, p, gamma, t) computing
gamma * M + J, with M the mass matrix and J the Jacobian of the
right-hand side, the matrix the implicit solvers factorize (as
ModelingToolkit's generate_W).
generate_W(sys) returns an R function (u, p, gamma, t) computing
gamma * M + J, with M the mass matrix and J the Jacobian of the
right-hand side, the matrix the implicit solvers factorize (as
ModelingToolkit's generate_W).