We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f8f79 commit 3960446Copy full SHA for 3960446
1 file changed
examples/pvtol-lqr.py
@@ -92,12 +92,12 @@
92
alt = (1, 4)
93
94
# Decoupled dynamics
95
-Ax = (A[lat, :])[:, lat] # ! not sure why I have to do it this way
+Ax = A[np.ix_(lat, lat)]
96
Bx = B[lat, 0]
97
Cx = C[0, lat]
98
Dx = D[0, 0]
99
100
-Ay = (A[alt, :])[:, alt] # ! not sure why I have to do it this way
+Ay = A[np.ix_(alt, alt)]
101
By = B[alt, 1]
102
Cy = C[1, alt]
103
Dy = D[1, 1]
0 commit comments