Skip to content

Commit cfe1f6c

Browse files
committed
fix incorrect index generation to unscramble deltas
1 parent e0a226a commit cfe1f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydmd/bopdmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ def compute_B(alpha):
624624
q_out, djac_out, j_pvt = qr(
625625
djac_matrix, mode="economic", pivoting=True
626626
)
627-
ij_pvt = np.arange(IA)
628-
ij_pvt = ij_pvt[j_pvt]
627+
ij_pvt = np.zeros(IA).astype(int)
628+
ij_pvt[j_pvt] = np.arange(IA).astype(int)
629629
rjac[:IA] = np.triu(djac_out[:IA])
630630
rhs_top = q_out.conj().T.dot(rhs_temp)
631631
scales_pvt = scales[j_pvt[:IA]]

0 commit comments

Comments
 (0)