pydae.core.builder.symbolic

Functions

build_large_jacobians(builder_obj)

Assembles the large global Jacobians (ini and trap) and extracts nonzero elements into lists for C code generation.

compute_base_jacobians(sys[, uz_jacs])

Computes the fundamental sub-Jacobians (Fx, Fy, Gx, Gy, etc.).

sym_jac(f, x)

Computes the symbolic Jacobian of vector 'f' with respect to vector 'x'.

pydae.core.builder.symbolic.build_large_jacobians(builder_obj)[source]

Assembles the large global Jacobians (ini and trap) and extracts nonzero elements into lists for C code generation.

Each Jacobian gets its OWN independent sparsity pattern (Ap, Ai). This avoids the bug where y_ini_list != y_run_list causes entries to land in wrong positions when a single shared pattern is used.

pydae.core.builder.symbolic.compute_base_jacobians(sys, uz_jacs=True)[source]

Computes the fundamental sub-Jacobians (Fx, Fy, Gx, Gy, etc.).

pydae.core.builder.symbolic.sym_jac(f, x)[source]

Computes the symbolic Jacobian of vector ‘f’ with respect to vector ‘x’.