diff options
| author | mattip <matti.picus@gmail.com> | 2022-11-27 12:15:46 +0200 |
|---|---|---|
| committer | mattip <matti.picus@gmail.com> | 2022-11-27 12:15:46 +0200 |
| commit | b64727c0ccfe60a2ed668eb1923d60f433558580 (patch) | |
| tree | c1b62ac3e1d6a1c890f7237db07a417b2e04ffb0 /numpy/core/include | |
| parent | d4b2d4f80060285ac085ea874aceaf9fa1bfb757 (diff) | |
| download | numpy-b64727c0ccfe60a2ed668eb1923d60f433558580.tar.gz | |
BUILD: revert function() -> #define for 3 npymath functions
Diffstat (limited to 'numpy/core/include')
| -rw-r--r-- | numpy/core/include/numpy/npy_math.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h index 945bbb15b..d7c9fbb4f 100644 --- a/numpy/core/include/numpy/npy_math.h +++ b/numpy/core/include/numpy/npy_math.h @@ -184,21 +184,28 @@ NPY_INPLACE double npy_atan2(double x, double y); #define npy_fmod fmod #define npy_floor floor #define npy_expm1 expm1 -#define npy_log1p log1p #define npy_acosh acosh -#define npy_asinh asinh #define npy_atanh atanh #define npy_rint rint #define npy_trunc trunc #define npy_exp2 exp2 #define npy_frexp frexp #define npy_ldexp ldexp -#define npy_copysign copysign #define npy_exp exp #define npy_sqrt sqrt #define npy_pow pow #define npy_modf modf +#if defined(__arm64__) && defined(__APPLE__) +/* due to a build problem with scipy, export these as functions */ +NPY_INPLACE double npy_asinh(double x); +NPY_INPLACE double npy_copysign(double y, double x); +NPY_INPLACE double npy_log1p(double x); +#else +#define npy_asinh asinh +#define npy_copysign copysign +#define npy_log1p log1p +#endif double npy_nextafter(double x, double y); double npy_spacing(double x); |
