a :jg+ @sjdZddlmZddlmZddlmZddlmZddlmZddlmZddlmZdd lm Z dd lm Z dd lm Z dd lm Z dd lm Z ddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZmZddlmZgdZddl m!Z!e!e"Z#[!dd Z$d!S)"aK ``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``). ``numpy.lib``'s private submodules contain basic functions that are used by other public modules and are useful to have in the main name-space. ) array_utils) introspect)mixins)npyio)scimath) stride_tricks)_type_check_impl)_index_tricks_impl)_nanfunctions_impl)_function_base_impl)_stride_tricks_impl)_shape_base_impl)_twodim_base_impl)_ufunclike_impl)_histograms_impl) _utils_impl)_arraysetops_impl)_polynomial_impl) _npyio_impl)_arrayterator_impl)_arraypad_impl)_version) Arrayterator) NumpyVersion) add_docstringtracemalloc_domain) add_newdoc) rrrrrrrrrrr) PytestTestercCs~ddl}ddl}|dkr,|jdtdd|S|dkr>tdn<|dvrXtd |d n"|d krjtd ntd t|dS)Nrmathz`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`) stacklevelZemathznumpy.lib.emath was an alias for emath module that was removed in NumPy 2.0. Replace usages of numpy.lib.emath with numpy.emath.) Z histogramsZ type_checkZ nanfunctionsZ function_baseZarraypadZ arraysetopsZ ufunclikeutilsZ twodim_baseZ shape_baseZ polynomialZ index_tricksz numpy.lib.z is now private. If you are using a public function, it should be available in the main numpy namespace, otherwise check the NumPy 2.0 migration guide.Z arrayteratorzinumpy.lib.arrayterator submodule is now private. To access Arrayterator class use numpy.lib.Arrayterator.z!module {!r} has no attribute {!r})rwarningswarnDeprecationWarningAttributeErrorformat__name__)attrrr#r*s>