z2mna

pmrf.rf.z2mna(z: Array | ndarray | bool | number | bool | int | float | complex) MNAStamp

Convert Impedance (Z) parameters to a Modified Nodal Analysis (MNA) stamp.

This formulation maps the port currents as the auxiliary variables, allowing raw Z-parameters to be stamped directly into the MNA system without requiring a potentially singular Z-to-Y matrix inversion.

Parameters:

z (ArrayLike) – The Z-parameter matrix with shape (nports, nports) or (nfreqs, nports, nports).

Returns:

The MNA representation containing Y, B, C, and D matrices.

Return type:

MNAStamp