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.

serialize_plan

Stable function · Sparsity and structure

Tier: stable · Kind: function · Topic: Sparsity and structure

JuliaPythonRust
serialize_planserialize_planserialize_plan

Julia

serialize_plan(p::ColumnBlockPlan)
serialize_plan(p::BlockDiagonalPlan)

Serialize a plan into the "factorization" field of the document block.

Source

Python

serialize_plan(p) -> dict

No docstring.

Source

Rust

pub fn serialize_plan(plan: &FactorizationPlan) -> Value

A factorization plan as the factorization field of a jacobians block (spec §4): the reference’s serialize_plan. A block LU is an object with type ("block_diagonal_lu"), block_vars (the block’s variables in elimination order), ordering (the 1-based Markowitz ordering of the name-sorted variables), and pattern and lu_pattern (the permuted block’s pattern and its LU pattern including fill-in, as sorted 1-based [row, column] pairs). Serialized with crate::stable_json it is byte-identical to the Julia and Python bindings’ output.

Source · Rust docs