pyFDN.track_poles#
- pyFDN.track_poles(model, path, poles, *, t0=0.0, t1=1.0, order=None, max_step=0.1, min_step=0.0001, max_newton=8)[source]#
Follow poles of a FLAMO loop while its parameters move along a path.
A predictor-corrector continuation: an Euler step in
log zfrom the eigenvalue derivative, then SVD-Newton at the new path position. A step is accepted only if every track converges, moves less than a quarter of the mean pole spacing2 pi / orderfrom its prediction, keeps its singular vector (|r_new^H r_old| >= 0.9, so it has not jumped to a neighbour) and stays apart from the other tracks; otherwise the step is halved. A track still failing atmin_stepis marked lost (NaN) and the others go on.- Parameters:
model (
Any) – A float64 model with one non-nestedRecursion(as frompyFDN.dss_to_flamo()), or theRecursionitself. Nested loops put the inner loop’s poles intodet Pand are not supported.path (
Callable[[Tensor],Mapping[str,Tensor]]) –path(t)maps a 0-d float64 tensortto new values for some of theRecursion’s parameters, by theirnamed_parameters()names (stored values, before FLAMO’smap). Build them with torch operations so the derivative intflows. For a gain, step in dB:lambda t: {"feedback.param": g0 * (g1 / g0) ** t * A}.poles (
Any) – Poles att0, e.g. fromseed_poles().t0 (
float) – Start and end of the path;t1 < t0tracks backwards.t1 (
float) – Start and end of the path;t1 < t0tracks backwards.order (
int|None) – Degree ofdet P(z); seeseed_poles().max_step (
float) – Bounds on the step int.min_step (
float) – Bounds on the step int.max_newton (
int) – Newton iterations allowed per step.
- Returns:
Accepted path positions with the poles and their singular vectors.
- Return type: