pysolver_view.roots.solvers.evaluation module#
Validated model evaluations, numerical derivatives, and call accounting.
- class pysolver_view.roots.solvers.evaluation.ModelEvaluator(fun, jac, scale, options, recorder, *, square=False)[source]#
Bases:
objectCount residual/Jacobian requests and record every attempted residual call.
Model inputs and residual outputs are detached from the application. Only explicit DomainError and nonfinite residual values are treated as domain failures; application programming errors propagate. Drivers decide whether to recover.
- jacobian(point, residual)[source]#
Count one Jacobian request and obtain analytic or numerical derivatives.
Finite-difference probes pass through residual() and consume its budget. Shape errors propagate; drivers classify nonfinite derivative values.
- numerical_jacobian(point, residual)[source]#
Differentiate through budgeted probes with no hidden base reevaluation.
Forward and central differences divide by the represented displacement. Complex step requires the application to preserve imaginary perturbations. All probes, including failures, consume the same residual-call budget.