Skip to content

Commit b1faef8

Browse files
dsj976fandreuz
andauthored
specify data type in array definition
Co-authored-by: Francesco Andreuzzi <[email protected]>
1 parent 1bd8e1a commit b1faef8

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.zeros(IA).astype(int)
628-
ij_pvt[j_pvt] = np.arange(IA).astype(int)
627+
ij_pvt = np.zeros(IA, dtype=int)
628+
ij_pvt[j_pvt] = np.arange(IA, dtype=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)