""" **Note:** almost all functions in the ``numpy.lib`` namespace are also present in the main ``numpy`` namespace. Please use the functions as ``np.<funcname>`` where possible. ``numpy.lib`` is mostly a space for implementing functions that don't belong in core or in another NumPy submodule with a clear purpose (e.g. ``random``, ``fft``, ``linalg``, ``ma``). Most contains basic functions that are used by several submodules and are useful to have in the main name-space. """ from numpy.version import version as __version__ # Public submodules # Note: recfunctions and (maybe) format are public too, but not imported from . import mixins from . import scimath as emath # Private submodules # load module names. See https://github.com/networkx/networkx/issues/5838 from . import type_check from . import index_tricks from . import function_base from . import nanfunctions from . import shape_base from . import stride_tricks from . import twodim_base from . import ufunclike from . import histograms from . import polynomial from . import utils from . import arraysetops from . import npyio from . import arrayterator from . import arraypad from . import _version from .type_check import * from .index_tricks import * from .function_base import * from .nanfunctions import * from .shape_base import * from .stride_tricks import * from .twodim_base import * from .ufunclike import * from .histograms import * from .polynomial import * from .utils import * from .arraysetops import * from .npyio import * from .arrayterator import Arrayterator from .arraypad import * from ._version import * from numpy.core._multiarray_umath import tracemalloc_domain __all__ = ['emath', 'tracemalloc_domain', 'Arrayterator'] __all__ += type_check.__all__ __all__ += index_tricks.__all__ __all__ += function_base.__all__ __all__ += shape_base.__all__ __all__ += stride_tricks.__all__ __all__ += twodim_base.__all__ __all__ += ufunclike.__all__ __all__ += arraypad.__all__ __all__ += polynomial.__all__ __all__ += utils.__all__ __all__ += arraysetops.__all__ __all__ += npyio.__all__ __all__ += nanfunctions.__all__ __all__ += histograms.__all__ from numpy._pytesttester import PytestTester test = PytestTester(__name__) del PytestTester def __getattr__(attr): # Warn for reprecated attributes import math import warnings if attr == 'math': warnings.warn( "`np.lib.math` is a deprecated alias for the standard library " "`math` module (Deprecated Numpy 1.25). Replace usages of " "`numpy.lib.math` with `math`", DeprecationWarning, stacklevel=2) return math else: raise AttributeError("module {!r} has no attribute " "{!r}".format(__name__, attr))
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
tests | Folder | 0755 |
|
|
__init__.py | File | 2.7 KB | 0644 |
|
__init__.pyi | File | 5.46 KB | 0644 |
|
_datasource.py | File | 22.1 KB | 0644 |
|
_iotools.py | File | 30.14 KB | 0644 |
|
_version.py | File | 4.74 KB | 0644 |
|
_version.pyi | File | 633 B | 0644 |
|
arraypad.py | File | 31.06 KB | 0644 |
|
arraypad.pyi | File | 1.69 KB | 0644 |
|
arraysetops.py | File | 32.87 KB | 0644 |
|
arraysetops.pyi | File | 8.14 KB | 0644 |
|
arrayterator.py | File | 6.9 KB | 0644 |
|
arrayterator.pyi | File | 1.5 KB | 0644 |
|
format.py | File | 33.95 KB | 0644 |
|
format.pyi | File | 748 B | 0644 |
|
function_base.py | File | 184.67 KB | 0644 |
|
function_base.pyi | File | 16.2 KB | 0644 |
|
histograms.py | File | 36.81 KB | 0644 |
|
histograms.pyi | File | 995 B | 0644 |
|
index_tricks.py | File | 30.61 KB | 0644 |
|
index_tricks.pyi | File | 4.15 KB | 0644 |
|
mixins.py | File | 6.91 KB | 0644 |
|
mixins.pyi | File | 3.04 KB | 0644 |
|
nanfunctions.py | File | 64.23 KB | 0644 |
|
nanfunctions.pyi | File | 606 B | 0644 |
|
npyio.py | File | 95.04 KB | 0644 |
|
npyio.pyi | File | 9.5 KB | 0644 |
|
polynomial.py | File | 43.1 KB | 0644 |
|
polynomial.pyi | File | 6.79 KB | 0644 |
|
recfunctions.py | File | 58.03 KB | 0644 |
|
scimath.py | File | 14.68 KB | 0644 |
|
scimath.pyi | File | 2.82 KB | 0644 |
|
setup.py | File | 405 B | 0644 |
|
shape_base.py | File | 38.03 KB | 0644 |
|
shape_base.pyi | File | 5.06 KB | 0644 |
|
stride_tricks.py | File | 17.49 KB | 0644 |
|
stride_tricks.pyi | File | 1.71 KB | 0644 |
|
twodim_base.py | File | 32.17 KB | 0644 |
|
twodim_base.pyi | File | 5.24 KB | 0644 |
|
type_check.py | File | 19.49 KB | 0644 |
|
type_check.pyi | File | 5.44 KB | 0644 |
|
ufunclike.py | File | 6.18 KB | 0644 |
|
ufunclike.pyi | File | 1.26 KB | 0644 |
|
user_array.py | File | 7.54 KB | 0644 |
|
utils.py | File | 36.92 KB | 0644 |
|
utils.pyi | File | 2.3 KB | 0644 |
|