Skip to content

Commit

Permalink
Merge pull request scipy#14613 from WarrenWeckesser/bspl-type-index
Browse files Browse the repository at this point in the history
MAINT: interpolate: Declare type for a Cython indexing variable.
  • Loading branch information
ev-br authored Aug 19, 2021
2 parents a290acb + fcb90e0 commit f6cfccb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scipy/interpolate/_bspl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6cfccb

Please sign in to comment.