Skip to main content

Crate sim_lib_numbers_numeric

Crate sim_lib_numbers_numeric 

Source
Expand description

Numeric evaluation surface: the numeric domain exposes numeric-diff, integrate, ode-solve, and composed pipelines over a registry of pluggable differentiator, quadrature, and ODE-solver backends.

A composed pipeline pairs a sim_lib_numbers_func::Func with a numeric domain such as quadrature or ODE solving, a method such as simpson or rk4, and a state kind. The resulting ComposedPipeline is a first-class runtime value that can be inspected and run through numeric/run-composed.

Structs§

ComposedPipeline
First-class value describing a numeric pipeline composition.
DiffOpts
Options controlling a numeric-differentiation call.
NumericNumbersLib
Library that installs the numeric evaluation surface: the numeric-diff, integrate, integrate-adapt, ode-solve, numeric/compose, and numeric/run-composed callables that dispatch to the registered numeric backends.
OdeOpts
Options controlling an ODE-solve call.
OdeProblem
A first-order initial-value ODE problem dy/dx = f(x, y) handed to an OdeSolver.
QuadOpts
Options controlling an integration (quadrature) call.

Enums§

NumericKind
The category of numeric backend, used to route a plugin to the right slot in the registry.
PipelineKind
Numeric pipeline domain selected for a composed pipeline.
StateKind
Runtime state representation selected for a composed pipeline.

Traits§

Differentiator
A numeric differentiation backend: computes df/dvar at a point.
NumericPlugin
Common interface for every numeric backend plugin: it reports its method name and the kind of operation it implements.
OdeSolver
A numeric ODE-solving backend: integrates an initial-value problem.
Quadrature
A numeric integration (quadrature) backend: computes a definite integral.

Functions§

global_numeric_registry
Returns the process-global numeric registry, creating it on first access.
integrate_adapt_symbol
Returns the symbol bound to the adaptive integrate-adapt operation.
integrate_symbol
Returns the symbol bound to the fixed-rule integrate operation.
numeric_compose_symbol
Returns the symbol bound to the numeric/compose operation.
numeric_diff_symbol
Returns the symbol bound to the numeric-diff operation.
numeric_run_composed_symbol
Returns the symbol bound to the numeric/run-composed operation.
ode_solve_symbol
Returns the symbol bound to the ode-solve operation.
register_differentiator
Registers a differentiator backend in the global numeric registry.
register_ode_solver
Registers an ODE-solver backend in the global numeric registry.
register_quadrature
Registers a quadrature backend in the global numeric registry.