Hi Jason,
Thank you for your detailed feedback! I appreciate your guidance in narrowing down and prioritizing the Intensive Jacobian workflow. I will be looking at Riccardo's work next:
I will look into PR #26773 and identify the remaining gaps (e.g. integration with lambdify).
Prototype CSE optimized Jacobian generators by combining cse() with Derivative objects to avoid redundant expr.diff(x) calls.
In addition, for Codegen performance:
Benchmark current lambdify-generated Jacobian code against hand-optimized C code.
Explore symjit's approach to JIT compilation and LLVM integration as a reference.
After some progress I will submit a draft PR demonstrating a Jacobian codegen optimized for CSE for simple ODE systems.
With best regards
Peiqi Li
Translated with DeepL.com (free version)