Skip to content

Commit 5939d96

Browse files
committed
Revert "remove DEBUG"
This reverts commit fb56d92.
1 parent fb56d92 commit 5939d96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

control/statesp.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,11 @@ def horner(self, x, warn_infinite=True):
919919
try:
920920
xI_A = x_idx * eye(self.nstates) - self.A
921921
xI_A_inv = solve(xI_A, self.B)
922+
# gh-664: xI_A did not raise singular matrix error,
923+
print(f"DEBUG np.linalg.solve(\n,"
924+
f"{xI_A}\n"
925+
f"{self.B} = \n"
926+
f"{xI_A_inv}")
922927
out[:, :, idx] = np.dot(self.C, xI_A_inv) + self.D
923928
except LinAlgError:
924929
# Issue a warning messsage, for consistency with xferfcn

0 commit comments

Comments
 (0)