pyFDN.seed_poles#

pyFDN.seed_poles(model, num_poles, *, path=None, t=0.0, order=None, radius=None, nfft=None, max_newton=8)[source]#

Find the num_poles largest-magnitude poles of a FLAMO loop.

Scans the smallest singular value of the characteristic matrix on a circle |z| = radius just outside the poles, runs Newton from every dip at once, and ranks the converged poles by |z|. Without a radius the scan starts a quarter pole spacing outside the unit circle and repeats once or twice just outside the largest pole found, so poles well inside the circle (a lossy loop) or outside it (an unstable one) are ranked correctly.

Parameters:
  • model (Any) – A float64 model with one non-nested Recursion (as from pyFDN.dss_to_flamo()), or the Recursion itself.

  • num_poles (int) – Number of poles to return.

  • path (Callable[[Tensor], Mapping[str, Tensor]] | None) – Parameter path as in track_poles(); the loop is evaluated at path(t). Default: the model’s current parameters.

  • t (float) – Path position to seed at.

  • order (int | None) – Degree of det P(z) (an upper bound is fine); sets the scan resolution. Inferred from the delays and loop filters of a model; required for a bare Recursion.

  • radius (float | None) – Scan on this circle only.

  • nfft (int | None) – Scan points on the full circle. Default: a power of two >= 8 * order.

  • max_newton (int) – Newton iterations from each dip.

Returns:

Complex poles with Im z >= 0, largest |z| first. Conjugates of a real-coefficient loop are implied.

Return type:

ndarray