StateSpace

class pmrf.models.surrogates.rational.StateSpace(A: Any, B: Any, C: Any, D: Any, *, name: str | None = None, metadata: Any = None, domain: str = 's', z0: Any = 50.0)

Bases: AbstractSingleDomain

(experimental) A general N-port model defined by continuous-time state-space matrices: H(s) = C * (sI - A)^-1 * B + D

Parameters:
  • A (Param) – State matrix (A). Shape: (state_dim, state_dim)

  • B (Param) – Input matrix (B). Shape: (state_dim, N)

  • C (Param) – Output matrix (C). Shape: (N, state_dim)

  • D (Param) – Feedthrough matrix (D). Shape: (N, N)

primary_matrix(freq: Frequency) Array

Retrieve the primary matrix and apply impedance renormalization if necessary.

Parameters:
  • freq (Frequency) – The frequency grid.

  • **kwargs – Additional arguments, specifically z0 for S-parameter renormalization.

Returns:

The domain matrix, renormalized to the requested z0 if applicable.

Return type:

jax.numpy.ndarray

A: Param

State matrix (A)

B: Param

Input matrix (B)

C: Param

Output matrix (C)

D: Param

Feedthrough matrix (D)