From fcb90e0f14c98ac8b181ee4ab0dacc9f2dbb5273 Mon Sep 17 00:00:00 2001 From: Warren Weckesser Date: Thu, 19 Aug 2021 11:06:33 -0400 Subject: [PATCH] MAINT: interpolate: Declare type for a Cython indexing variable. Fixes the build warning: warning: _bspl.pyx:449:36: Index should be typed for more efficient access --- scipy/interpolate/_bspl.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/scipy/interpolate/_bspl.pyx b/scipy/interpolate/_bspl.pyx index eff356d0e5cf..e02065e04858 100644 --- a/scipy/interpolate/_bspl.pyx +++ b/scipy/interpolate/_bspl.pyx @@ -439,6 +439,7 @@ def _make_design_matrix(const double[::1] x, ..., last row - x[-1]). """ cdef: + cnp.npy_intp i cnp.npy_intp n = x.shape[0] cnp.npy_intp nt = t.shape[0] double[::1] wrk = np.empty(2*k+2, dtype=float)