Skip to content

Commit

Permalink
MAINT: interpolate: work around ssize_t not available on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-br committed Jul 18, 2024
1 parent 63cdbe6 commit 64d7ef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions scipy/interpolate/src/__fitpack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ data_matrix( /* inputs */
the `s-1` corresponding rows form an `(s-1, k+1)`-sized "block".
Then a blocked QR implementation could look like
https://people.sc.fsu.edu/~jburkardt/f77_src/band_qr/band_qr.f
The `startrow` optional argument accounts for the scenatio with a two-step
factorization. Namely, the preceding rows are assumend to be already
processed and are skipped.
Expand Down
3 changes: 3 additions & 0 deletions scipy/interpolate/src/__fitpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
#include <iostream>
#include <tuple>
#include <vector>
#include <string>

#include "../_build_utils/src/npy_cblas.h"
#include "../_build_utils/src/fortran_defs.h"

#define DLARTG BLAS_FUNC(dlartg)

/* MSVC */
#define ssize_t ptrdiff_t

namespace fitpack {

Expand Down

0 comments on commit 64d7ef0

Please sign in to comment.