jeertmans/DiffeRT

[DOC] Document when `compute_paths` can be JIT-compiled

Offen

#337 geöffnet am 23.10.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (10 Forks)auto 404
documentationgood first issueneeds-triage

Repository-Metriken

Stars
 (64 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 7h) (24 gemergte PRs in 30 T)

Beschreibung

Terms

Describe the issue

As discussed in https://github.com/jeertmans/DiffeRT/pull/326#issuecomment-3437022985, the compute_paths method exhibits some challenges when it comes to JIT-compilation, as some cases, e.g., when setting disconnect_inactive_triangles to True, will create output arrays whose shapes depend on the values of the input arrays. This is not compatible with JAX's tracing system, this should probably be documented somewhere.

Affected page(s)

Issue type

Documentation enhancement

Recommended fix or suggestions

No response

Contributor Guide