| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0af3dbf commit c4e609e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,7 +69,7 @@ def _warn_ill_conditioned_E(E): | |||
| 69 | 69 | not measurably more accurate in that regime. | |
| 70 | 70 | """ | |
| 71 | 71 | condE = np.linalg.cond(E) | |
| 72 | - if condE > 1.0 / np.sqrt(finfo(float).eps): | ||
| 72 | + if condE > 1.0 / np.sqrt(np.finfo(float).eps): | ||
| 73 | 73 | warnings.warn( | |
| 74 | 74 | f"E is ill-conditioned (cond(E) = {condE:.2g}); the generalized " | |
| 75 | 75 | "Lyapunov solution may have reduced accuracy. The problem itself " | |
@@ -383,7 +383,7 @@ def dlyap(A, Q, C=None, E=None, method=None): | |||
| 383 | 383 | # Solvability requires lam_A * lam_Q != 1 for all pairs of | |
| 384 | 384 | # eigenvalues (the diagonals of the triangular factors) | |
| 385 | 385 | if np.min(np.abs(np.outer(np.diag(Tq), np.diag(Ta)) - 1.)) \ | |
| 386 | - < finfo(float).eps * max( | ||
| 386 | + < np.finfo(float).eps * max( | ||
| 387 | 387 | 1., np.abs(np.diag(Ta)).max() | |
| 388 | 388 | * np.abs(np.diag(Tq)).max()): | |
| 389 | 389 | raise ControlArgument( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments