a2mna

pmrf.rf.a2mna(a: Array | ndarray | bool | number | bool | int | float | complex) MNAStamp

Convert Transfer (ABCD) parameters to a Modified Nodal Analysis (MNA) stamp.

This formulation maps the port currents as the auxiliary variables, avoiding potentially singular matrix inversions.

Parameters:

a (ArrayLike) – The ABCD parameter matrix with shape (2, 2) or (nfreqs, 2, 2).

Returns:

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

Return type:

MNAStamp

Raises:

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