skrf.network.connect_s
- skrf.network.connect_s(A, k, B, l, num=1)[source]
Connect two n-port networks’ s-matrices together.
Specifically, connect port k on network A to port l on network B. The resultant network has nports = (A.rank + B.rank-2). This function operates on, and returns s-matrices. The function
connect()operates onNetworktypes.- Parameters:
A (
numpy.ndarray) – S-parameter matrix of A, shape is fxnxnk (int) – port index on A (port indices start from 0)
B (
numpy.ndarray) – S-parameter matrix of B, shape is fxnxnl (int) – port index on B
num (int) – number of consecutive ports to connect (default 1)
- Returns:
C – new S-parameter matrix
- Return type:
Note
Internally, this function creates a larger composite network and calls the
innerconnect_s()function. see that function for more details about the implementationSee also
connectoperates on
Networktypesinnerconnect_sfunction which implements the connection algorithm
innerconnect_s_lstsqactual S-parameter connection algorithm using lstsq.