Skip to content

Commit 88f62c4

Browse files
committed
DEBUG
1 parent beb7bbe commit 88f62c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

control/statesp.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,10 +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: not singular but the underlying LAPACK routine
923-
# was not satisfied with the condition. Try least-squares
924-
# solver.
922+
# gh-664: x_IA not singular but the underlying LAPACK
923+
# routine was not satisfied with the condition.
924+
# Try least-squares solver.
925925
if np.any(np.isnan(xI_A_inv)): # pragma: no cover
926+
print(f"DEBUG: {xI_A}, {self.B}")
926927
xI_A_inv, _, _, _ = lstsq(xI_A, self.B, rcond=None)
927928
out[:, :, idx] = np.dot(self.C, xI_A_inv) + self.D
928929
except LinAlgError:

0 commit comments

Comments
 (0)