skrf.network.Network.flip

Network.flip()[source]

Swap the ports of a 2n-port Network (inplace).

In case the network is 2n-port and n > 1, ‘second’ numbering scheme is assumed to be consistent with the ** cascade operator:

    +--------+                 +--------+
  0-|0      n|-n             0-|n      0|-n
  1-|1    n+1|-n+1    flip   1-|n+1    1|-n+1
   ...      ...       =>       ...      ...
n-1-|n-1 2n-1|-2n-1        n-1-|2n-1 n-1|-2n-1
    +--------+                 +--------+
Return type:

None