skrf.network.flip
- skrf.network.flip(a)[source]
Invert the ports of a networks s-matrix, ‘flipping’ it over left and right.
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 +--------+ +--------+
- Parameters:
a (
numpy.ndarray
) – scattering parameter matrix. shape should be should be 2nx2n, or fx2nx2n- Returns:
c – flipped scattering parameter matrix
- Return type:
See also
renumber