summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorjaimefrio <jaime.frio@gmail.com>2014-05-25 00:15:45 -0700
committerjaimefrio <jaime.frio@gmail.com>2014-05-25 21:33:13 -0700
commit494abcf189e9b53e42b624752eb3eaaf46a0dfd3 (patch)
treef82a3fe17196c0e93e245ca1079afdcae83d209b /numpy/core/setup.py
parent4b42810fe45727dbd6ef0c70f8e766fee97db14e (diff)
downloadnumpy-494abcf189e9b53e42b624752eb3eaaf46a0dfd3.tar.gz
ENH: speed-up minimum, maximum and xor for bool dtype
Replaced the operations for the above ufuncs on bools, by simpler single instructions. On random inputs `np.minimum` and `np.maximum` run about 25% faster, and `np.logical_xor` and `np.bitwise_xor` almost 3x faster.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 3cde96d77..94e3a8bc3 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -863,9 +863,8 @@ def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import get_cmd
subpath = join('src', 'umath')
- # NOTE: For manual template conversion of loops.h.src, read the note
- # in that file.
sources = [
+ join(local_dir, subpath, 'loops.h.src'),
join(local_dir, subpath, 'loops.c.src'),
join(local_dir, subpath, 'simd.inc.src')]
@@ -895,6 +894,7 @@ def configuration(parent_package='',top_path=None):
join('src', 'umath', 'reduction.c'),
join('src', 'umath', 'funcs.inc.src'),
join('src', 'umath', 'simd.inc.src'),
+ join('src', 'umath', 'loops.h.src'),
join('src', 'umath', 'loops.c.src'),
join('src', 'umath', 'ufunc_object.c'),
join('src', 'umath', 'ufunc_type_resolution.c')]