1"""

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

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

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

5

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

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

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

9

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

11 useful to have in the main name-space.

12

13"""

14 import math

15

16 from numpy.version import version as __version__

17

18# Public submodules

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

20 from . import mixins

21 from . import scimath as emath

22

23# Private submodules

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

25 from . import type_check

26 from . import index_tricks

27 from . import function_base

28 from . import nanfunctions

29 from . import shape_base

30 from . import stride_tricks

31 from . import twodim_base

32 from . import ufunclike

33 from . import histograms

34 from . import polynomial

35 from . import utils

36 from . import arraysetops

37 from . import npyio

38 from . import arrayterator

39 from . import arraypad

40 from . import _version

41

42 from .type_check import *

43 from .index_tricks import *

44 from .function_base import *

45 from .nanfunctions import *

46 from .shape_base import *

47 from .stride_tricks import *

48 from .twodim_base import *

49 from .ufunclike import *

50 from .histograms import *

51

52 from .polynomial import *

53 from .utils import *

54 from .arraysetops import *

55 from .npyio import *

56 from .arrayterator import Arrayterator

57 from .arraypad import *

58 from ._version import *

59 from 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

77 from numpy._pytesttester import PytestTester

78 test = PytestTester(__name__)

79 del PytestTester