Skip to content

Commit

Permalink
Update preconditioner routines
Browse files Browse the repository at this point in the history
Some changes in numpy float routines
  • Loading branch information
maksimovdmitrii authored Jan 16, 2025
1 parent 7a585f6 commit ea80c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gensec/precon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ def dd_sum(*arg_ds):
(array, array): summ of the value and derivatives
"""
shape = np.shape(arg_ds[0][1])
res = np.float(0.0)
res = float(0.0)
dres = np.zeros(shape)
for arg, darg in arg_ds:
res += np.asarray(arg)
Expand Down Expand Up @@ -1217,7 +1217,7 @@ def dd_prod(*arg_ds):
(array, array): product of the value and derivatives
"""
shape = np.shape(arg_ds[0][1])
res = np.float(1.0)
res = float(1.0)
dres = np.zeros(shape)
for arg, darg in arg_ds:
dres *= arg # update previous derivs
Expand Down

0 comments on commit ea80c6f

Please sign in to comment.