Project

EarthSciASTDiff

Analytical sparse Jacobians for EarthSciAST (.esm) models by symbolic differentiation of the expression AST.

Contents

This is the documentation for the older version v0.7.0. For the latest release, see v0.8.0.

Evaluate the Jacobian

The Jacobian and its products as documents an EarthSciAST evaluator runs, the storage map that places the band values.

OperationKindBindingsSummary
bind_planfunctionJulia, PythonCheck plan against the state Jacobian of input (an EsmFile or a FlattenedSystem) and precompute its gather.
evaluation_documentfunctionJulia, Python, RustThe derived evaluation document of the first-order bands on axis wrt (esm-jacobian-spec.md §8, model "JacobianEval"): the source’s observed the coefficients read, every…
hvp_documentfunctionJulia, Python, RustThe second-order product document of esm-jacobian-spec.md §9.4 for the axis pair wrt and stages stage pairs: its right-hand side leaves g = ∇_{a2} Σᵢ μᵢᵀ J(u) wᵢ (`∇_{a2}…
jac_prototypefunctionJuliaA freshly zeroed sparse prototype on the structural pattern — the object to pass as ODEFunction(f!; jac_prototype = …).
jvp_documentfunctionJulia, Python, RustThe product documents of esm-jacobian-spec.md §9.2 / §9.3 for one first-order axis: a derived ESM document (model "JvpEval" / "VjpEval") whose right-hand side, evaluated by…
scatter_planfunctionJulia, PythonBuild the scatter plan of a model’s state Jacobian for layout.
vjp_documentfunctionJulia, Python, RustThe product documents of esm-jacobian-spec.md §9.2 / §9.3 for one first-order axis: a derived ESM document (model "JvpEval" / "VjpEval") whose right-hand side, evaluated by…
scatter_plantypeJulia, Python, RustBand fields → storage positions for one (band list, layout).

All topics