master
Per A Brodtkorb 8 years ago
parent fdaf6701de
commit 04ae98e161

@ -994,13 +994,13 @@ class _Gaussq(object):
a_out = zeros((a_out.size, 1)) a_out = zeros((a_out.size, 1))
return a_out, b_out, args, a_shape return a_out, b_out, args, a_shape
@staticmethod
def _revert_nans_with_old(self, val, val_old): def _revert_nans_with_old(val, val_old):
if any(np.isnan(val)): if any(np.isnan(val)):
val[np.isnan(val)] = val_old[np.isnan(val)] val[np.isnan(val)] = val_old[np.isnan(val)]
@staticmethod
def _update_error(self, i, abserr, val, val_old, k): def _update_error(i, abserr, val, val_old, k):
if i > 1: if i > 1:
abserr[k] = abs(val_old[k] - val[k]) # absolute tolerance abserr[k] = abs(val_old[k] - val[k]) # absolute tolerance

Loading…
Cancel
Save