Skip to content

Commit 2bd64d7

Browse files
authored
Merge pull request scipy#24070 from ev-br/rbfinterp_dtype_long
MAINT: interpolate/RBF: use fixed-width ints with pythran
2 parents 9bade2f + e5f9d5b commit 2bd64d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scipy/interpolate/_rbfinterp_np.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def polynomial_matrix(x, powers, xp):
2424

2525
def _monomial_powers(ndim, degree, xp):
2626
out = _monomial_powers_impl(ndim, degree)
27-
out = np.asarray(out, dtype=np.dtype("long"))
27+
out = np.asarray(out, dtype=np.int64)
2828
if len(out) == 0:
2929
out = out.reshape(0, ndim)
3030
return out

scipy/interpolate/_rbfinterp_pythran.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _kernel_matrix(x, kernel):
8484
return out
8585

8686

87-
# pythran export _polynomial_matrix(float[:, :], int[:, :])
87+
# pythran export _polynomial_matrix(float[:, :], int64[:, :])
8888
def _polynomial_matrix(x, powers):
8989
"""Return monomials, with exponents from `powers`, evaluated at `x`."""
9090
out = np.empty((x.shape[0], powers.shape[0]), dtype=float)
@@ -97,7 +97,7 @@ def _polynomial_matrix(x, powers):
9797
# float[:],
9898
# str,
9999
# float,
100-
# int[:, :])
100+
# int64[:, :])
101101
def _build_system(y, d, smoothing, kernel, epsilon, powers):
102102
"""Build the system used to solve for the RBF interpolant coefficients.
103103
@@ -168,7 +168,7 @@ def _build_system(y, d, smoothing, kernel, epsilon, powers):
168168
# float[:, :],
169169
# str,
170170
# float,
171-
# int[:, :],
171+
# int64[:, :],
172172
# float[:],
173173
# float[:])
174174
def _build_evaluation_coefficients(x, y, kernel, epsilon, powers,

0 commit comments

Comments
 (0)