pyFDN.general_char_poly#

pyFDN.general_char_poly(delays, A)[source]#

Generalized characteristic polynomial (GCP) for delay state-space.

Implements the formula from Schlecht & Habets (2015), Time-varying feedback matrices in feedback delay networks. J. Acoust. Soc. Amer., 138(3), 1389-1398. Matches the reference generalCharPoly.m.

For a static (N, N) A the coefficients come from one circle of determinant samples, det(I - diag(w**delays) @ A) at roots of unity, and an inverse FFT: exactly M + 1 of them for M = sum(delays), with small terms not trimmed, and no principal-minor enumeration, so N is not limited. Their accuracy is that of the determinants; small terms may be obscured by roundoff. A polynomial (N, N, L) A is expanded over its principal minors, which is exponential in N.

Parameters:
  • delays (ArrayLike) – Positive integer delays in samples (length N); z^{-1} convention.

  • A (ArrayLike) – Real feedback matrix, static (N, N) or polynomial (N, N, L) in z^{-1}.

Returns:

p – Generalized characteristic polynomial coefficients in z^{-1} ordering (index 0 = z^0, index k = z^{-k}).

Return type:

ndarray