numexpr 2.14.0__tar.gz → 2.14.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {numexpr-2.14.0 → numexpr-2.14.1}/ANNOUNCE.rst +6 -12
- {numexpr-2.14.0 → numexpr-2.14.1}/MANIFEST.in +1 -1
- {numexpr-2.14.0 → numexpr-2.14.1}/PKG-INFO +1 -2
- {numexpr-2.14.0 → numexpr-2.14.1}/RELEASE_NOTES.rst +8 -2
- numexpr-2.14.1/VERSION +1 -0
- numexpr-2.14.1/numexpr/__init__.py +66 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/cpuinfo.py +236 -277
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/expressions.py +89 -136
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/necompiler.py +118 -179
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/tests/__init__.py +2 -3
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/tests/conftest.py +1 -1
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/tests/test_numexpr.py +5 -2
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/utils.py +40 -76
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/version.py +2 -2
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr.egg-info/PKG-INFO +1 -2
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr.egg-info/SOURCES.txt +0 -3
- {numexpr-2.14.0 → numexpr-2.14.1}/pyproject.toml +0 -21
- numexpr-2.14.1/requirements.txt +1 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/setup.py +0 -2
- numexpr-2.14.0/VERSION +0 -1
- numexpr-2.14.0/numexpr/__init__.py +0 -82
- numexpr-2.14.0/numexpr/interpreter.pyi +0 -52
- numexpr-2.14.0/numexpr/py.typed +0 -0
- numexpr-2.14.0/numexpr/version.pyi +0 -6
- numexpr-2.14.0/requirements.txt +0 -1
- {numexpr-2.14.0 → numexpr-2.14.1}/ADDFUNCS.rst +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/AUTHORS.txt +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/LICENSE.txt +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/LICENSES/cpuinfo.txt +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/README.rst +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/boolean_timing.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/free_threading.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/issue-36.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/issue-47.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/large_array_vs_numpy.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/multidim.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/poly.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/timing.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/unaligned-simple.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/varying-expr.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/vml_timing.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/vml_timing2.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/bench/vml_timing3.py +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/bespoke_functions.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/complex_functions.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/functions.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/interp_body.cpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/interpreter.cpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/interpreter.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/missing_posix_functions.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/module.cpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/module.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/msvc_function_stubs.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/numexpr_config.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/numexpr_object.cpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/numexpr_object.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/opcodes.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/str-two-way.hpp +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/win32/pthread.c +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/win32/pthread.h +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr/win32/stdint.h +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr.egg-info/dependency_links.txt +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr.egg-info/requires.txt +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/numexpr.egg-info/top_level.txt +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/setup.cfg +0 -0
- {numexpr-2.14.0 → numexpr-2.14.1}/site.cfg.example +0 -0
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
=========================
|
|
2
|
-
Announcing NumExpr 2.14.
|
|
2
|
+
Announcing NumExpr 2.14.1
|
|
3
3
|
=========================
|
|
4
4
|
|
|
5
5
|
Hi everyone,
|
|
6
6
|
|
|
7
|
-
NumExpr 2.14.
|
|
8
|
-
|
|
9
|
-
Thanks to Luke Shaw and Joren Hammudoglu (@jorenham) for these contributions.
|
|
7
|
+
NumExpr 2.14.1 introduces patches to ensure compatibility with NumPy 1.26,
|
|
8
|
+
rolling back static typing support.
|
|
10
9
|
|
|
11
10
|
Project documentation is available at:
|
|
12
11
|
|
|
13
12
|
https://numexpr.readthedocs.io/
|
|
14
13
|
|
|
15
|
-
Changes from 2.
|
|
14
|
+
Changes from 2.14.0 to 2.14.1
|
|
16
15
|
-----------------------------
|
|
17
16
|
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* Static typing support has been added, making NumExpr compatible with
|
|
22
|
-
static type checkers like `mypy` and `pyright`.
|
|
23
|
-
Thanks to Joren Hammudoglu (@jorenham) for the work.
|
|
24
|
-
|
|
17
|
+
* Rolled back static typing support to ensure compatibiity with NumPy 1.26.
|
|
18
|
+
* Added CI tests for NumPy 1.26
|
|
25
19
|
|
|
26
20
|
What's Numexpr?
|
|
27
21
|
---------------
|
|
@@ -2,7 +2,7 @@ include MANIFEST.in VERSION
|
|
|
2
2
|
|
|
3
3
|
include *.rst *.txt *.cfg site.cfg.example
|
|
4
4
|
|
|
5
|
-
recursive-include numexpr *.cpp *.hpp *.py
|
|
5
|
+
recursive-include numexpr *.cpp *.hpp *.py
|
|
6
6
|
recursive-include numexpr/win32 *.c *.h
|
|
7
7
|
exclude numexpr/__config__.py RELEASING.txt site.cfg
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: numexpr
|
|
3
|
-
Version: 2.14.
|
|
3
|
+
Version: 2.14.1
|
|
4
4
|
Summary: Fast numerical expression evaluator for NumPy
|
|
5
5
|
Author-email: "David M. Cooke, Francesc Alted, and others" <blosc@blosc.org>
|
|
6
6
|
Maintainer-email: Blosc Development Team <blosc@blosc.org>
|
|
@@ -14,7 +14,6 @@ Classifier: Intended Audience :: Information Technology
|
|
|
14
14
|
Classifier: Intended Audience :: Science/Research
|
|
15
15
|
Classifier: Programming Language :: Python
|
|
16
16
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
-
Classifier: Typing :: Typed
|
|
18
17
|
Classifier: Operating System :: Microsoft :: Windows
|
|
19
18
|
Classifier: Operating System :: Unix
|
|
20
19
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
Release notes for NumExpr 2.14 series
|
|
3
3
|
=====================================
|
|
4
4
|
|
|
5
|
+
Changes from 2.14.0 to 2.14.1
|
|
6
|
+
-----------------------------
|
|
7
|
+
|
|
8
|
+
* Rolled back static typing support to ensure compatibiity with NumPy 1.26.
|
|
9
|
+
* Added CI tests for NumPy 1.26
|
|
10
|
+
|
|
11
|
+
|
|
5
12
|
Changes from 2.13.1 to 2.14.0
|
|
6
13
|
-----------------------------
|
|
7
14
|
|
|
8
|
-
* Numerical stability for overflow has been improved for ``tan``
|
|
15
|
+
* Numerical stability for overflow has been improved for ``tan`` / ``tanh``
|
|
9
16
|
to handle possible overflows for complex numbers.
|
|
10
17
|
|
|
11
18
|
* Static typing support has been added, making NumExpr compatible with
|
|
@@ -19,7 +26,6 @@ Changes from 2.13.0 to 2.13.1
|
|
|
19
26
|
* Patch to maximum/minimum functions in order to match NumPy NaN handling
|
|
20
27
|
* Patch to convert '+'->'|' and '*'->'&' for booleans
|
|
21
28
|
|
|
22
|
-
|
|
23
29
|
Changes from 2.12.1 to 2.13.0
|
|
24
30
|
-----------------------------
|
|
25
31
|
|
numexpr-2.14.1/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.14.1
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
###################################################################
|
|
2
|
+
# Numexpr - Fast numerical array expression evaluator for NumPy.
|
|
3
|
+
#
|
|
4
|
+
# License: MIT
|
|
5
|
+
# Author: See AUTHORS.txt
|
|
6
|
+
#
|
|
7
|
+
# See LICENSE.txt and LICENSES/*.txt for details about copyright and
|
|
8
|
+
# rights to use.
|
|
9
|
+
####################################################################
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Numexpr is a fast numerical expression evaluator for NumPy. With it,
|
|
13
|
+
expressions that operate on arrays (like "3*a+4*b") are accelerated
|
|
14
|
+
and use less memory than doing the same calculation in Python.
|
|
15
|
+
|
|
16
|
+
See:
|
|
17
|
+
|
|
18
|
+
https://github.com/pydata/numexpr
|
|
19
|
+
|
|
20
|
+
for more info about it.
|
|
21
|
+
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from numexpr.interpreter import __BLOCK_SIZE1__, MAX_THREADS, use_vml
|
|
25
|
+
|
|
26
|
+
is_cpu_amd_intel = False # DEPRECATION WARNING: WILL BE REMOVED IN FUTURE RELEASE
|
|
27
|
+
|
|
28
|
+
# cpuinfo imports were moved into the test submodule function that calls them
|
|
29
|
+
# to improve import times.
|
|
30
|
+
|
|
31
|
+
from numexpr.expressions import E
|
|
32
|
+
from numexpr.necompiler import (NumExpr, disassemble, evaluate, re_evaluate,
|
|
33
|
+
validate)
|
|
34
|
+
from numexpr.utils import (_init_num_threads, detect_number_of_cores,
|
|
35
|
+
detect_number_of_threads, get_num_threads,
|
|
36
|
+
get_vml_version, set_num_threads,
|
|
37
|
+
set_vml_accuracy_mode, set_vml_num_threads)
|
|
38
|
+
|
|
39
|
+
# Detect the number of cores
|
|
40
|
+
ncores = detect_number_of_cores()
|
|
41
|
+
# Initialize the number of threads to be used
|
|
42
|
+
nthreads = _init_num_threads()
|
|
43
|
+
# The default for VML is 1 thread (see #39)
|
|
44
|
+
# set_vml_num_threads(1)
|
|
45
|
+
|
|
46
|
+
from . import version
|
|
47
|
+
|
|
48
|
+
__version__ = version.version
|
|
49
|
+
|
|
50
|
+
def print_versions():
|
|
51
|
+
"""Print the versions of software that numexpr relies on."""
|
|
52
|
+
try:
|
|
53
|
+
import numexpr.tests
|
|
54
|
+
return numexpr.tests.print_versions()
|
|
55
|
+
except ImportError:
|
|
56
|
+
# To maintain Python 2.6 compatibility we have simple error handling
|
|
57
|
+
raise ImportError('`numexpr.tests` could not be imported, likely it was excluded from the distribution.')
|
|
58
|
+
|
|
59
|
+
def test(verbosity=1):
|
|
60
|
+
"""Run all the tests in the test suite."""
|
|
61
|
+
try:
|
|
62
|
+
import numexpr.tests
|
|
63
|
+
return numexpr.tests.test(verbosity=verbosity)
|
|
64
|
+
except ImportError:
|
|
65
|
+
# To maintain Python 2.6 compatibility we have simple error handling
|
|
66
|
+
raise ImportError('`numexpr.tests` could not be imported, likely it was excluded from the distribution.')
|