diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-12-02 10:48:23 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-03-03 12:29:11 +0100 |
commit | 9c08da6aa443956a69976735285d31ea168e6341 (patch) | |
tree | a19136ac3ed3267f17325836dcb24eb77cd2a7a5 /series_expansion.py | |
parent | b8231f6626f0e1c9c01dfce95e242ea71937bfdb (diff) |
Python3 compat.
Diffstat (limited to 'series_expansion.py')
-rw-r--r-- | series_expansion.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/series_expansion.py b/series_expansion.py index 15ee79d..ca06b40 100644 --- a/series_expansion.py +++ b/series_expansion.py @@ -59,7 +59,7 @@ class SeriesExpansion(object): basis_vals = [] for i, (b, c, d) in enumerate(zip(self._basis, coords, diff_order)): val = [] - for idx in xrange(self._coeffs.shape[i]): + for idx in range(self._coeffs.shape[i]): val.append(b.eval(idx, c, d)) basis_vals.append(val) @@ -68,8 +68,8 @@ class SeriesExpansion(object): ret += val * c return ret elif self._dim == 2: - for i in xrange(self._coeffs.shape[0]): - for j in xrange(self._coeffs.shape[1]): + for i in range(self._coeffs.shape[0]): + for j in range(self._coeffs.shape[1]): ret += self._coeffs[i, j] * np.outer(basis_vals[0][i], basis_vals[1][j]) return ret else: |