summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2019-09-20 01:22:30 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2019-09-20 01:22:30 -0400
commit055f8f297797867d9e9b8b84d51b76bb8d5a29ac (patch)
tree11533487a5658ae26a6ba1cd5824deecdcf41fee
parentc5f98bda9eaa8165567f71527fb16e9ed6789a9d (diff)
downloadnumpy-055f8f297797867d9e9b8b84d51b76bb8d5a29ac.tar.gz
MAINT: core: Remove duplicated inner loop ee->e from log, exp, sin, cos, sqrt.
The ufuncs log, exp, sin, cos and sqrt had two occurrences of the signature ee->e, with the corresponding generic loop function PyUFunc_e_e_As_f_f. This change removes the generation of the duplicated function from the array of inner loops for these ufuncs. The *first* entry of ee->e is kept; tests fail if the first one is removed instead of the second.
-rw-r--r--numpy/core/code_generators/generate_umath.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/code_generators/generate_umath.py b/numpy/core/code_generators/generate_umath.py
index ae871ea6f..6729fe197 100644
--- a/numpy/core/code_generators/generate_umath.py
+++ b/numpy/core/code_generators/generate_umath.py
@@ -664,7 +664,7 @@ defdict = {
None,
TD('e', f='cos', astype={'e':'f'}),
TD('f', simd=[('fma', 'f'), ('avx512f', 'f')]),
- TD(inexact, f='cos', astype={'e':'f'}),
+ TD('fdg' + cmplx, f='cos'),
TD(P, f='cos'),
),
'sin':
@@ -673,7 +673,7 @@ defdict = {
None,
TD('e', f='sin', astype={'e':'f'}),
TD('f', simd=[('fma', 'f'), ('avx512f', 'f')]),
- TD(inexact, f='sin', astype={'e':'f'}),
+ TD('fdg' + cmplx, f='sin'),
TD(P, f='sin'),
),
'tan':
@@ -710,7 +710,7 @@ defdict = {
None,
TD('e', f='exp', astype={'e':'f'}),
TD('f', simd=[('fma', 'f'), ('avx512f', 'f')]),
- TD(inexact, f='exp', astype={'e':'f'}),
+ TD('fdg' + cmplx, f='exp'),
TD(P, f='exp'),
),
'exp2':
@@ -733,7 +733,7 @@ defdict = {
None,
TD('e', f='log', astype={'e':'f'}),
TD('f', simd=[('fma', 'f'), ('avx512f', 'f')]),
- TD(inexact, f='log', astype={'e':'f'}),
+ TD('fdg' + cmplx, f='log'),
TD(P, f='log'),
),
'log2':
@@ -763,7 +763,7 @@ defdict = {
None,
TD('e', f='sqrt', astype={'e':'f'}),
TD(inexactvec),
- TD(inexact, f='sqrt', astype={'e':'f'}),
+ TD('fdg' + cmplx, f='sqrt'),
TD(P, f='sqrt'),
),
'cbrt':