code: def _npdelta(self, a, delta):
          
          for x in np.nditer(a, op_flags=["readwrite"]):
              delta += x
              x[...] = delta
          return a
docs: Numpy: Modifying Array Values
              http://docs.scipy.org/doc/numpy/reference/arrays.nditer.html