Skip to content

Commit

Permalink
MAINT: refactor PyArray usages (scipy#18967)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
tupui authored and scottshambaugh committed Jul 28, 2023
1 parent 0d7f0ff commit 664c034
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scipy/integrate/_odepackmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ the result tuple when the full_output argument is non-zero.

#include "numpy/arrayobject.h"

#define PyArray_MAX(a,b) (((a)>(b))?(a):(b))

#ifdef HAVE_BLAS_ILP64
#define F_INT npy_int64
#define F_INT_NPY NPY_INT64
Expand Down
2 changes: 2 additions & 0 deletions scipy/signal/_splinemodule.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "_splinemodule.h"

#define PyArray_MIN(a,b) (((a)<(b))?(a):(b))

static void
convert_strides(npy_intp* instrides,npy_intp* convstrides,int size,int N)
{
Expand Down

0 comments on commit 664c034

Please sign in to comment.