87 Commits

Author SHA1 Message Date
Francesc Alted 2059974b3d Return the actual result code from run_interpreter()
run_interpreter() computed the execution engine's result code but
unconditionally returned 0, discarding it. The caller checks for a
negative return to raise an exception, so any failure in the serial
or parallel VM engine was silently swallowed and whatever was left
in the (possibly unwritten) output buffer was returned instead.

Possibly related to pydata/numexpr#557, though the exact trigger for
that issue's intermittent all-zero output on Windows is not
confirmed.
2026-07-18 12:08:06 +02:00
Luke Shaw 2c6b79627c Delay definition of signf2 2025-09-23 13:14:49 +02:00
Luke Shaw 38907d7475 Add sign, maximum, minimum 2025-09-23 13:00:28 +02:00
Luke Shaw 996d56fd81 Added copysign, signbit 2025-09-22 21:42:06 +02:00
Luke Shaw 616806a539 Added trunc, round, nextafter 2025-09-22 20:58:40 +02:00
Luke Shaw 07b54adfa8 Add hypot 2025-09-22 20:01:25 +02:00
Luke Shaw 91526e17ff Now compiles on MKL 2025-09-11 11:15:27 +02:00
Luke Shaw 9c328137a5 Added complex->bool funcs and try to fix vml for boolean output funcs 2025-09-11 11:03:47 +02:00
Luke Shaw 01c254993e Fixes for Windows 2025-08-28 17:13:07 +02:00
Luke Shaw 54187d7fec Adding isnan/isfinite functions etc. 2025-08-28 13:56:40 +02:00
pre-commit-ci[bot] 9dad87bd2c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-03-06 18:54:56 +00:00
Edgar Andrés Margffoy Tuay 33ee71b0c6 Test numexpr against pytest-run-parallel on 3.13t 2025-03-03 11:37:47 -05:00
Sebastian Berg b35f5fcbd8 MAINT: Allow building with NumPy 1.x locally
I have build locally without build isolation and it seems to work
fine.
2024-05-08 15:31:04 +02:00
Clément Robert beedecb399 BLD: fix compiling against numpy 2.0 2024-04-01 14:43:52 +02:00
27rabbitlt 8376c9f104 fix: underpypy, no dict args, kwds is non-null 2023-12-16 21:04:16 +01:00
Teng Liu aa8b704a04 add NE_MAXARGS for future numpy change NPY_MAXARGS 2023-12-05 21:43:17 +01:00
Teng Liu 7767bc0e6e fix: replace npy_cdouble with C++ complex 2023-11-30 16:54:26 +01:00
Christoph Gohlke 23537bdb5c Fix syntax error when building with USE_VML 2023-08-13 15:44:05 -07:00
Peter Edwards 1441946cea Don't define/set ex_uses_vml if USE_VML is not defined
This suppresses a warning about setting the value when it's value is
never used.
2023-05-23 16:02:10 +01:00
Robert McLeod ef4400163b Changes to supported testing for #418 2022-09-05 13:58:02 -07:00
Robert McLeod 20ccf6e62f Version bump to 2.8.3 as the setup.cfg was still not setup for README.rst 2022-06-25 10:17:47 -07:00
Robert McLeod 1614ce585f Change writeback check to use a flag instead of conditions 2022-06-24 18:05:40 -07:00
Robert McLeod 5e74e3c5db Getting ready for release 2.8.2
Build / Build wheels on ubuntu-latest for aarch64 - 3.10 (push) Has been cancelled
Build / Build wheels on ubuntu-latest for aarch64 - 3.7 (push) Has been cancelled
Build / Build wheels on ubuntu-latest for aarch64 - 3.8 (push) Has been cancelled
Build / Build wheels on ubuntu-latest for aarch64 - 3.9 (push) Has been cancelled
Build / Build wheels on macos-latest for arm64 - 3.7-3.10 (push) Has been cancelled
Build / Build wheels on macos-latest for auto64 - 3.7-3.10 (push) Has been cancelled
Build / Build wheels on ubuntu-latest for auto64 - 3.7-3.10 (push) Has been cancelled
Build / Build wheels on windows-latest for auto64 - 3.7-3.10 (push) Has been cancelled
2022-06-23 21:49:05 -07:00
Robert McLeod 06f66d3b64 Separate init of singleton from assignment of default value due to use of goto statements 2022-06-23 16:09:31 -07:00
Robert McLeod ab79cd020c Apply PyArray_ResolveWritebackIfCopy after singleton ops if needed 2022-06-23 15:42:34 -07:00
Robert McLeod c7270998aa Re-add our special NE_INFINITY and NE_NAN symbols for G++ and clang 2022-06-23 13:34:58 -07:00
Robert McLeod 6ba6f651b3 Test on all platforms assignment of const to unaligned singleton array 2022-06-23 13:28:42 -07:00
Robert McLeod 55765c6e48 Getting ready for release 2.8.2 2022-04-13 21:03:16 -07:00
Robert McLeod 1c6a024947 Fix for #397, use of NPY_ARRAY_UPDATEIFCOPY flag 2022-01-24 10:54:34 -08:00
Robert McLeod 422de133fd Move init_threads() protection inside the function; rename threads_ready -> barrier_passed to avoid confusion with threads init vars 2018-07-12 10:51:30 -07:00
Mark Dickinson 79232c0632 Fix: allow for spurious wakeup calls from pthread_cond_wait. 2018-07-12 13:28:32 +01:00
Robert A. McLeod e639060686 Fix #277, reductions on arrays with leading dimension of 1 2017-07-19 13:39:15 -07:00
Francesc Alted b428e1923a Merge pull request #231 from shadchin/master
Fix bugs in function `stringcontains()`: `strlen()` can not find the end of string.  Fixes #230.
2017-01-29 12:38:07 +01:00
Antonio Valentino 2dffa35f51 Typo 2016-12-24 22:16:23 +01:00
Alexandr Shadchin 6709d28b23 This is always true 2016-11-18 18:04:16 +05:00
Alexandr Shadchin 5198c96687 Slight simplification function stringcontains 2016-11-18 15:40:56 +05:00
Alexandr Shadchin bd8334eeb6 BUG: fix contains with long needle 2016-11-18 15:35:59 +05:00
Alexandr Shadchin 6daaa61a8d BUG: fix segmentation fault
Bug in function stringcontains:
strlen can not find the end of string and leaves beyond available memory
2016-11-18 15:33:03 +05:00
FrancescAlted f91a2d3144 Merge pull request #228 from oleksandr-pavlyk/feature/upgrade-numpy-api
MAINT: Update to use current Numpy API
2016-10-11 14:10:00 +02:00
Oleksandr Pavlyk f81fe92633 MAINT: Update to use current Numpy API
This eliminates numerous warnings like

warning: #warning "Using deprecated NumPy API, disable it by "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
2016-10-10 15:04:55 -05:00
Oleksandr Pavlyk fda3c80a41 MAINT: Elimited deprecated conversion from string constant to 'char *'
Added explicit casts to string constants to eliminate these compiler warnings.
2016-10-10 14:52:43 -05:00
Francesc Alted 71a752246e Added the fmin and fmax function for Windowz 2016-01-26 14:25:38 +01:00
Francesc Alted 78362db52f Merge branch 'minmax-ops' of https://github.com/perimosocordiae/numexpr into perimosocordiae-minmax-ops 2016-01-26 13:57:27 +01:00
CJ Carey 48977a44c6 attempting to fix Windows errors
based on the suggestion of @jennolsen84
2016-01-20 16:50:50 -06:00
Antoine Pitrou 2baef92b95 Fix crash when evaluate() called from multiple threads 2016-01-20 10:54:27 +01:00
CJ Carey 0330b8b1f6 Adding min and max reduction functions 2015-11-18 17:01:03 -05:00
Francesc Alted a4cabfbe92 Correctly compare with empty strings. Fixes #121 and PyTables #184. 2015-04-27 17:40:10 +02:00
Francesc Alted 95f3995aed Get rid of LOGDEBUG as it was meant to be used just during development of contains() 2014-04-07 06:59:56 +02:00
cgohlke 9fcbab1873 Fix build error with gcc 2014-04-06 15:24:08 -07:00
cgohlke 7865d1ced5 Use std:min instead of fminl
Fixes build error on Windows with msvc.
2014-04-06 14:56:53 -07:00