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))
return a_out, b_out, args, a_shape
def _revert_nans_with_old(self, val, val_old):
@staticmethod
def _revert_nans_with_old(val, val_old):
if any(np.isnan(val)):
val[np.isnan(val)] = val_old[np.isnan(val)]
def _update_error(self, i, abserr, val, val_old, k):
@staticmethod
def _update_error(i, abserr, val, val_old, k):
if i > 1:
abserr[k] = abs(val_old[k] - val[k]) # absolute tolerance

Loading…
Cancel
Save