Project

EarthSciASTDiff

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

Contents

Sparsity and structure

The exact structural sparsity pattern, the structure classification, and the symbolic factorization plan.

OperationKindBindingsSummary
column_linesfunctionJulia, Python, RustThe per-line structure of a state Jacobian whose couplings all stay within one line along index set axis, or nothing when one does not: every band couples two array states of…
detect_structurefunctionJulia, Python, RustClassify the Jacobian’s structure from the band list:
jacobian_patternfunctionJulia, PythonThe structural (global, point-independent) sparsity pattern of the Jacobian as a SparseMatrixCSC{Bool}.
lu_fillfunctionJulia, Python, RustSymbolic (no-pivoting) LU of a structural pattern: the input pattern plus every fill-in entry Gaussian elimination creates, in natural order.
markowitz_orderingfunctionPython, RustGreedy Markowitz ordering (1-based), first minimal cost wins.
plan_factorizationfunctionJulia, Python, RustSymbolic factorization info for the detected structure class, or nothing when no plan is implemented for that class (the Jacobian itself is still fully usable — a plan is an…
serialize_planfunctionJulia, Python, RustSerialize a plan into the "factorization" field of the document block.
block_diagonal_plantypeJulia, Python, RustPer-cell block factorization info for a :block_diagonal Jacobian (the chemistry shape: every coupling is within-cell, so the global matrix is one identical ns × ns-patterned…
column_block_plantypeJulia, Python, RustLine-by-line factorization info for a :column_block Jacobian: every coupling stays within one line along axis, so the matrix is one (length(block_vars)·line_length)-square…

All topics