skrf.mathFunctions.rsolve
- skrf.mathFunctions.rsolve(A, B)[source]
Solves x @ A = B.
Calls numpy.linalg.solve with transposed matrices.
Same as B @ np.linalg.inv(A) but avoids calculating the inverse and should be numerically slightly more accurate.
Input should have dimension of similar to (nfreqs, nports, nports).
- Parameters:
A (np.ndarray)
B (np.ndarray)
- Returns:
x
- Return type:
np.ndarray