remove warning associated to npy.mat
@@ -5473,8 +5473,7 @@ def z2y(z: npy.ndarray) -> npy.ndarray:
.. [#] http://en.wikipedia.org/wiki/impedance_parameters
.. [#] http://en.wikipedia.org/wiki/Admittance_parameters
"""
- return npy.array([npy.mat(z[f, :, :]) ** -1 for f in range(z.shape[0])])
-
+ return npy.linalg.inv(z)
def z2t(z: npy.ndarray) -> NoReturn:
"""
@@ -5860,7 +5859,7 @@ def y2z(y: npy.ndarray) -> npy.ndarray:
.. [#] http://en.wikipedia.org/wiki/Admittance_parameters
.. [#] http://en.wikipedia.org/wiki/impedance_parameters
"""
- return npy.array([npy.mat(y[f, :, :]) ** -1 for f in range(y.shape[0])])
+ return npy.linalg.inv(y)
def y2t(y: npy.ndarray) -> NoReturn:
