skrf.network.Network.flip

Network.flip()[source]

swaps the ports of a 2n-port Network in case the network is 2n-port and n > 1, ‘second’ numbering scheme is assumed to be consistent with the ** cascade operator.

-|0      n|-        0-|n      0|-n
-|1    n+1|- flip   1-|n+1    1|-n+1
...      ...  =>     ...      ...
-|n-1 2n-1|-      n-1-|2n-1 n-1|-2n-1