Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/numpy/core/umath.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

1""" 

2Create the numpy.core.umath namespace for backward compatibility. In v1.16 

3the multiarray and umath c-extension modules were merged into a single 

4_multiarray_umath extension module. So we replicate the old namespace 

5by importing from the extension module. 

6 

7""" 

8 

9from . import _multiarray_umath 

10from ._multiarray_umath import * # noqa: F403 

11# These imports are needed for backward compatibility, 

12# do not change them. issue gh-11862 

13# _ones_like is semi-public, on purpose not added to __all__ 

14from ._multiarray_umath import _UFUNC_API, _add_newdoc_ufunc, _ones_like 

15 

16__all__ = [ 

17 '_UFUNC_API', 'ERR_CALL', 'ERR_DEFAULT', 'ERR_IGNORE', 'ERR_LOG', 

18 'ERR_PRINT', 'ERR_RAISE', 'ERR_WARN', 'FLOATING_POINT_SUPPORT', 

19 'FPE_DIVIDEBYZERO', 'FPE_INVALID', 'FPE_OVERFLOW', 'FPE_UNDERFLOW', 'NAN', 

20 'NINF', 'NZERO', 'PINF', 'PZERO', 'SHIFT_DIVIDEBYZERO', 'SHIFT_INVALID', 

21 'SHIFT_OVERFLOW', 'SHIFT_UNDERFLOW', 'UFUNC_BUFSIZE_DEFAULT', 

22 'UFUNC_PYVALS_NAME', '_add_newdoc_ufunc', 'absolute', 'add', 

23 'arccos', 'arccosh', 'arcsin', 'arcsinh', 'arctan', 'arctan2', 'arctanh', 

24 'bitwise_and', 'bitwise_or', 'bitwise_xor', 'cbrt', 'ceil', 'conj', 

25 'conjugate', 'copysign', 'cos', 'cosh', 'deg2rad', 'degrees', 'divide', 

26 'divmod', 'e', 'equal', 'euler_gamma', 'exp', 'exp2', 'expm1', 'fabs', 

27 'floor', 'floor_divide', 'float_power', 'fmax', 'fmin', 'fmod', 'frexp', 

28 'frompyfunc', 'gcd', 'geterrobj', 'greater', 'greater_equal', 'heaviside', 

29 'hypot', 'invert', 'isfinite', 'isinf', 'isnan', 'isnat', 'lcm', 'ldexp', 

30 'left_shift', 'less', 'less_equal', 'log', 'log10', 'log1p', 'log2', 

31 'logaddexp', 'logaddexp2', 'logical_and', 'logical_not', 'logical_or', 

32 'logical_xor', 'maximum', 'minimum', 'mod', 'modf', 'multiply', 'negative', 

33 'nextafter', 'not_equal', 'pi', 'positive', 'power', 'rad2deg', 'radians', 

34 'reciprocal', 'remainder', 'right_shift', 'rint', 'seterrobj', 'sign', 

35 'signbit', 'sin', 'sinh', 'spacing', 'sqrt', 'square', 'subtract', 'tan', 

36 'tanh', 'true_divide', 'trunc']