Skip to main content

Module solver_1d

Module solver_1d 

Source
Expand description

The shared solver types and the pluggable method dispatch.

Solver1d is the configuration (tolerance + iteration cap) every algorithm takes; its inherent methods delegate to the per-algorithm files for direct, statically-chosen calls. Problem + Method are the pluggable layer: describe the objective once, then swap algorithms with an enum value.

Structs§

Problem
A 1-D root-finding problem: the objective, whatever derivatives are available, a starting point, and an optional bracket.
Root
Result of a 1-D root search.
Solver1d
A 1-D root finder: residual tolerance plus an iteration cap.

Enums§

Method
The pluggable algorithm choice for Solver1d::solve.