s2a

s2a(s, z0=50)[source]

Convert S-parameters to ABCD parameters.

Parameters:
  • s (jnp.ndarray) – The S-parameter matrix with shape (nfreqs, 2, 2).

  • z0 (NumberLike, optional, default=50) – The characteristic impedance.

Returns:

The ABCD parameter matrix with shape (nfreqs, 2, 2).

Return type:

jnp.ndarray

Raises:

IndexError – If the input is not a 2-port network.