Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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 

24from .type_check import * 

25from .index_tricks import * 

26from .function_base import * 

27from .nanfunctions import * 

28from .shape_base import * 

29from .stride_tricks import * 

30from .twodim_base import * 

31from .ufunclike import * 

32from .histograms import * 

33 

34from .polynomial import * 

35from .utils import * 

36from .arraysetops import * 

37from .npyio import * 

38from .financial import * 

39from .arrayterator import Arrayterator 

40from .arraypad import * 

41from ._version import * 

42from numpy.core._multiarray_umath import tracemalloc_domain 

43 

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

45__all__ += type_check.__all__ 

46__all__ += index_tricks.__all__ 

47__all__ += function_base.__all__ 

48__all__ += shape_base.__all__ 

49__all__ += stride_tricks.__all__ 

50__all__ += twodim_base.__all__ 

51__all__ += ufunclike.__all__ 

52__all__ += arraypad.__all__ 

53__all__ += polynomial.__all__ 

54__all__ += utils.__all__ 

55__all__ += arraysetops.__all__ 

56__all__ += npyio.__all__ 

57__all__ += financial.__all__ 

58__all__ += nanfunctions.__all__ 

59__all__ += histograms.__all__ 

60 

61from numpy._pytesttester import PytestTester 

62test = PytestTester(__name__) 

63del PytestTester