pyFDN.dss_to_pr#
- pyFDN.dss_to_pr(delays, A, B, C, D, *, mode='eig', lf_max_seconds=3.0, response_tolerance=1e-08)[source]#
Modal decomposition of a delay state-space (DSS) system.
H(z) = C·(diag(z^m_i) − A)^{-1}·B + D = Σ_k residue_k / (z − p_k) + DA
DSSunpacks straight in, and the result straight intopyFDN.pr_to_impz():pr, info = pyFDN.dss_to_pr(*dss) ir = pyFDN.pr_to_impz(*pr, ir_len)
The Ehrlich-Aberth iteration works on a FLAMO model, so it is
pyFDN.flamo_to_pr()’s:flamo_to_pr(dss_to_flamo(*dss, fs)).- Parameters:
delays (
ArrayLike) – Per-line delays in samples.A (
ArrayLike) – Static feedback matrix.B (
ArrayLike)C (
ArrayLike)D (
ArrayLike)mode (
str) –Pole-extraction algorithm.
"eig"— eigenvalues of the minimal state-space realization."roots"— roots of the generalized characteristic polynomial."lindsey_fox"— experimental FFT grid search and Laguerre polishing of the same polynomial (real, nonsingular static A and positive integer delays). Refines against the original matrix and checks the all-port response. Failed completion or validation raises; no other solver is called. Does not change the default or guarantee a speedup. SeepyFDN.auxiliary.lindsey_fox.
lf_max_seconds (
float) – LF root-search budget checked between numerical operations. Coefficient construction, mandatory matrix refinement, and validation are outside this budget.response_tolerance (
float) – LF must pass relative L2 and normalized peak checks against the original all-port transfer at deterministic off-grid points. Supported static loops can certify upper bounds on those same errors; otherwise the transfer is evaluated directly. MetadataerrorBounddistinguishes bounds from measured errors. The sampled acceptance criterion is not a uniform response error guarantee. LF always requires a complete result.
- Return type:
tuple[PoleResidue,dict[str,Any]]- Returns:
pr (PoleResidue) –
residues(n_poles, n_out, n_in),poles(n_poles,),direct(n_out, n_in)andis_conjugate_pole_pair(n_poles,), each conjugate pair stored once.info (dict) – All modes report
solver,complete, and expected/returned pole counts.responseValidationis None when no response check was run (complete eig/roots results). LF always validates its response; LF never switches to another solver.