Skip to main content

Module solve

Module solve 

Source
Expand description

Core dynamic dispatch trait and its implementation.

Defines the Solve trait, the object-safe trait that erases the generic type parameters of the core diffsol solver. Each combination of matrix type, codegen backend, and solver method implements this trait. The concrete GenericSolve<M, CG> struct provides the implementation.

Also provides factory functions (solve_factory_jit, solve_factory_external, solve_factory_external_dynamic) that create the appropriate Box<dyn Solve> for a given configuration. These are called by OdeWrapper’s constructors.

All items in this module are pub(crate); the public API is exposed through OdeWrapper.