hyperiax.prebuilt.bffg.propagate_linearization

hyperiax.prebuilt.bffg.propagate_linearization(tree, params=None)[source]

Propagate continuous BFFG linearisation anchors top-down.

This is the public one-shot form of continuous_refine_anchor(). It overwrites each non-root node’s anchor with prec_v^-1 ptnl_v and caches the parent’s just-refined anchor in anchor_pa.

Parameters:
  • tree (Tree) – Continuous BFFG tree after continuous_bf_sweep().

  • params – Optional params object passed through to the underlying sweep.

Return type:

Tree

Returns:

Tree with updated anchor and anchor_pa fields.