s2a

pmrf.rf.s2a(s: Array, z0: Array | ndarray | bool | number | bool | int | float | complex = 50) Array

Convert S-parameters to ABCD parameters.

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

  • z0 (ArrayLike, 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.