Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/numpy/lib/__init__.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

55 statements  

1""" 

2**Note:** almost all functions in the ``numpy.lib`` namespace 

3are also present in the main ``numpy`` namespace. Please use the 

4functions as ``np.<funcname>`` where possible. 

5 

6``numpy.lib`` is mostly a space for implementing functions that don't 

7belong in core or in another NumPy submodule with a clear purpose 

8(e.g. ``random``, ``fft``, ``linalg``, ``ma``). 

9 

10Most contains basic functions that are used by several submodules and are 

11useful to have in the main name-space. 

12 

13""" 

14import math 

15 

16from numpy.version import version as __version__ 

17 

18# Public submodules 

19# Note: recfunctions and (maybe) format are public too, but not imported 

20from . import mixins 

21from . import scimath as emath 

22 

23# Private submodules 

24# load module names. See https://github.com/networkx/networkx/issues/5838 

25from . import type_check 

26from . import index_tricks 

27from . import function_base 

28from . import nanfunctions 

29from . import shape_base 

30from . import stride_tricks 

31from . import twodim_base 

32from . import ufunclike 

33from . import histograms 

34from . import polynomial 

35from . import utils 

36from . import arraysetops 

37from . import npyio 

38from . import arrayterator 

39from . import arraypad 

40from . import _version 

41 

42from .type_check import * 

43from .index_tricks import * 

44from .function_base import * 

45from .nanfunctions import * 

46from .shape_base import * 

47from .stride_tricks import * 

48from .twodim_base import * 

49from .ufunclike import * 

50from .histograms import * 

51 

52from .polynomial import * 

53from .utils import * 

54from .arraysetops import * 

55from .npyio import * 

56from .arrayterator import Arrayterator 

57from .arraypad import * 

58from ._version import * 

59from numpy.core._multiarray_umath import tracemalloc_domain 

60 

61__all__ = ['emath', 'math', 'tracemalloc_domain', 'Arrayterator'] 

62__all__ += type_check.__all__ 

63__all__ += index_tricks.__all__ 

64__all__ += function_base.__all__ 

65__all__ += shape_base.__all__ 

66__all__ += stride_tricks.__all__ 

67__all__ += twodim_base.__all__ 

68__all__ += ufunclike.__all__ 

69__all__ += arraypad.__all__ 

70__all__ += polynomial.__all__ 

71__all__ += utils.__all__ 

72__all__ += arraysetops.__all__ 

73__all__ += npyio.__all__ 

74__all__ += nanfunctions.__all__ 

75__all__ += histograms.__all__ 

76 

77from numpy._pytesttester import PytestTester 

78test = PytestTester(__name__) 

79del PytestTester