cascade_s

pmrf.rf.cascade_s(Smats: Array | ndarray | bool | number | bool | int | float | complex, z0s: Array | ndarray | bool | number | bool | int | float | complex, method='redheffer', eps=1e-12) tuple[Array, Array]

Cascades multiple S-parameter networks together.

This is the most efficient function to use for cascading S-parameter networks together.

Currently only the 2N port case is supported, in which case Redheffer’s star product is used. Also, currently, all matrices must have the same S-parameter definition and characteristic impedance.

Parameters:
  • Smats (ArrayLike) – A sequence of S-parameter matrices for the component networks. The array must have shape (N x F x m x m) representing N networks to be cascaded sequential at F frequencies, each with ports (m, m).

  • z0s (ArrayLike) – A sequence of characteristic impedances (z0) for the component networks. Must be a float, or N arrays each broadcastable to (N x F x m).

Returns:

The resulting S-parameter matrix and characteristic impedance of the cascaded system.

Return type:

tuple[jnp.ndarray, jnp.ndarray]