From 37ccb27086e5ea624240031d0dbc5c5cac0a7d2e Mon Sep 17 00:00:00 2001 From: Vaibhav Gupta Date: Tue, 9 Sep 2025 11:31:38 +0200 Subject: [PATCH] BugFix: `place_acker` output should be 2D matrix --- control/statefbk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/statefbk.py b/control/statefbk.py index b6e9c9655..6625c56af 100644 --- a/control/statefbk.py +++ b/control/statefbk.py @@ -252,7 +252,7 @@ def place_acker(A, B, poles): K = np.linalg.solve(ct, pmat) K = K[-1, :] # Extract the last row - return K + return _ssmatrix(K) def lqr(*args, **kwargs):