summaryrefslogtreecommitdiff
path: root/numpy/core/umath.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-08-31 13:44:59 -0500
committerGitHub <noreply@github.com>2018-08-31 13:44:59 -0500
commit866589cdf7ecb3054ec3ae6493612d51c9d5e56d (patch)
treea37f31bc41dc8c67530a823391b96f058fe9c26c /numpy/core/umath.py
parent089a0e0e9d1e32f57ddb89be5f450125bc58f57f (diff)
parentf17f229a4a5def56282df4a7e51461c9374385d8 (diff)
downloadnumpy-866589cdf7ecb3054ec3ae6493612d51c9d5e56d.tar.gz
Merge branch 'master' into warn-float16-nan
Diffstat (limited to 'numpy/core/umath.py')
-rw-r--r--numpy/core/umath.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/numpy/core/umath.py b/numpy/core/umath.py
new file mode 100644
index 000000000..efa213b1a
--- /dev/null
+++ b/numpy/core/umath.py
@@ -0,0 +1,32 @@
+"""
+Create the numpy.core.umath namespace for backward compatibility. In v1.16
+the multiarray and umath c-extension modules were merged into a single
+_multiarray_umath extension module. So we replicate the old namespace
+by importing from the extension module.
+"""
+
+from . import _multiarray_umath
+from numpy.core._multiarray_umath import *
+from numpy.core._multiarray_umath import _add_newdoc_ufunc, _arg
+
+__all__ = ['ERR_CALL', 'ERR_DEFAULT', 'ERR_IGNORE', 'ERR_LOG', 'ERR_PRINT',
+ 'ERR_RAISE', 'ERR_WARN', 'FLOATING_POINT_SUPPORT', 'FPE_DIVIDEBYZERO',
+ 'FPE_INVALID', 'FPE_OVERFLOW', 'FPE_UNDERFLOW', 'NAN', 'NINF', 'NZERO',
+ 'PINF', 'PZERO', 'SHIFT_DIVIDEBYZERO', 'SHIFT_INVALID', 'SHIFT_OVERFLOW',
+ 'SHIFT_UNDERFLOW', 'UFUNC_BUFSIZE_DEFAULT', 'UFUNC_PYVALS_NAME',
+ '_add_newdoc_ufunc', '_arg',
+ 'absolute', 'add', 'arccos', 'arccosh', 'arcsin', 'arcsinh', 'arctan',
+ 'arctan2', 'arctanh', 'bitwise_and', 'bitwise_or', 'bitwise_xor', 'cbrt',
+ 'ceil', 'conj', 'conjugate', 'copysign', 'cos', 'cosh', 'deg2rad',
+ 'degrees', 'divide', 'divmod', 'e', 'equal', 'euler_gamma', 'exp', 'exp2',
+ 'expm1', 'fabs', 'floor', 'floor_divide', 'float_power', 'fmax', 'fmin',
+ 'fmod', 'frexp', 'frompyfunc', 'gcd', 'geterrobj', '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', 'pi', 'positive',
+ 'power', 'rad2deg', 'radians', 'reciprocal', 'remainder', 'right_shift',
+ 'rint', 'seterrobj', 'sign', 'signbit', 'sin', 'sinh', 'spacing', 'sqrt',
+ 'square', 'subtract', 'tan', 'tanh', 'true_divide', 'trunc']
+