freealg.distributions.ChiralBlock.stieltjes_on_torus#
- ChiralBlock.stieltjes_on_torus(u, lam, a1, b1, a2, b2)#
- Exact m on the torus (no fit), continuous, by:
computing the two exact candidates mA(z(u)) and mB(z(u)),
selecting a continuous branch on the torus via BFS continuation,
applying an optimal “half-cycle swap” along the phi-direction (choosing the cut location automatically) to ensure global consistency without breaking periodicity (fixes the equator-circle issue).
- Usage:
mT_exact = eval_m_on_torus_exact(u, lam, a1, b1, a2, b2, alpha, beta, c)