summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMarten van Kerkwijk <mhvk@astro.utoronto.ca>2018-06-29 10:09:46 -0400
committerMarten van Kerkwijk <mhvk@astro.utoronto.ca>2018-06-29 11:41:21 -0400
commit4c3a7824eb35a52b2cb9853a86d9dfa23937eb8b (patch)
tree3c6a060f13432f697a5ff3ce7855ae80115801e0 /benchmarks
parenta6383b4d0a5ef51178755b2e1f418265b2304f75 (diff)
downloadnumpy-4c3a7824eb35a52b2cb9853a86d9dfa23937eb8b.tar.gz
BENCH: belated addition of lcm, gcd to ufunc benchmark.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/benchmarks/bench_ufunc.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/benchmarks/benchmarks/bench_ufunc.py b/benchmarks/benchmarks/bench_ufunc.py
index 1d4e70a3a..eb9c3cf3b 100644
--- a/benchmarks/benchmarks/bench_ufunc.py
+++ b/benchmarks/benchmarks/bench_ufunc.py
@@ -10,15 +10,17 @@ ufuncs = ['abs', 'absolute', 'add', 'arccos', 'arccosh', 'arcsin', 'arcsinh',
'bitwise_or', 'bitwise_xor', 'cbrt', 'ceil', 'conj', 'conjugate',
'copysign', 'cos', 'cosh', 'deg2rad', 'degrees', 'divide', 'divmod',
'equal', 'exp', 'exp2', 'expm1', 'fabs', 'float_power', 'floor',
- 'floor_divide', 'fmax', 'fmin', 'fmod', 'frexp', 'greater',
- 'greater_equal', 'heaviside', 'hypot', 'invert', 'isfinite', 'isinf',
- 'isnan', 'isnat', 'ldexp', 'left_shift', 'less', 'less_equal', 'log',
- 'log10', 'log1p', 'log2', 'logaddexp', 'logaddexp2', 'logical_and',
- 'logical_not', 'logical_or', 'logical_xor', 'maximum', 'minimum',
- 'mod', 'modf', 'multiply', 'negative', 'nextafter', 'not_equal',
- 'positive', 'power', 'rad2deg', 'radians', 'reciprocal', 'remainder',
- 'right_shift', 'rint', 'sign', 'signbit', 'sin', 'sinh', 'spacing',
- 'sqrt', 'square', 'subtract', 'tan', 'tanh', 'true_divide', 'trunc']
+ 'floor_divide', 'fmax', 'fmin', 'fmod', 'frexp', 'gcd', 'greater',
+ 'greater_equal', 'heaviside', 'hypot', 'invert', 'isfinite',
+ 'isinf', 'isnan', 'isnat', 'lcm', 'ldexp', 'left_shift', 'less',
+ 'less_equal', 'log', 'log10', 'log1p', 'log2', 'logaddexp',
+ 'logaddexp2', 'logical_and', 'logical_not', 'logical_or',
+ 'logical_xor', 'maximum', 'minimum', 'mod', 'modf', 'multiply',
+ 'negative', 'nextafter', 'not_equal', 'positive', 'power',
+ 'rad2deg', 'radians', 'reciprocal', 'remainder', 'right_shift',
+ 'rint', 'sign', 'signbit', 'sin', 'sinh', 'spacing', 'sqrt',
+ 'square', 'subtract', 'tan', 'tanh', 'true_divide', 'trunc']
+
for name in dir(np):
if isinstance(getattr(np, name, None), np.ufunc) and name not in ufuncs: