Skip to content

Commit bfc7e6b

Browse files
Update control/statefbk.py
Co-authored-by: Sawyer Fuller <58706249+sawyerbfuller@users.noreply.github.com>
1 parent 7feeb2c commit bfc7e6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

control/statefbk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def ctrb(A, B, t=None):
10271027
ctrb = np.zeros((n, t * m))
10281028
ctrb[:, :m] = bmat
10291029
for k in range(1, t):
1030-
ctrb[:, k * m:(k + 1) * m] = np.dot(amat, ctrb[:, (k - 1) * m:k * m])
1030+
ctrb[:, k * m:(k + 1) * m] = amat @ ctrb[:, (k - 1) * m:k * m]
10311031

10321032
return _ssmatrix(ctrb)
10331033

0 commit comments

Comments
 (0)