dict_to_matrix#

dict_to_matrix(sdict: Dict[Tuple[str, str], jaxtyping.Complex[Array, '...']]) jax.Array[source]#

Converts a dictionary of s-parameters to a matrix of s-parameters.

Column and row ordering is determined by sax.utils.get_ports.

Parameters

sdict (sax.SDict) – A dictionary of s-parameters.

Returns

smat – A matrix of s-parameters indexed according to the order in sax.utils.get_ports, shape \((f \times n \times n)\).

Return type

Array