관리-도구
편집 파일: __init__.cpython-37.pyc
B ��Fd� � @ s� d Z ddlmZmZmZ ddlZddlZddlmZm Z ddlm Z ye W n ek rd dZY nX erzej �d� �n8ydd lmZ W n ek r� d Zee��Y nX ddlmZ ddlmZ dd lmZ dd� ZddlmZ dddgZejj e_ ddlm Z ej!�"� j#Z#ej!�"� j$Z$ddlm%Z% ddlm&Z& ddl&T ddlm'Z' ddlm(Z( ddl(T ddlm)Z) ddlm*Z* ddlm+Z+ ddlm,Z, ddlm-Z- ddlm.Z. dd lm/Z0 ddl/T dd!l'm1Z1 ej2d d"k�r�dd#l3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9 e9Z:n$dd$l;m4Z4m5Z5m6Z6m7Z7m8Z8m:Z:m9Z9 dd%l&m<Z<m=Z=m>Z>m?Z? e�@d&dd'd(g� e�@e&j� e�@e0j� e�@e(j� e�@d)d*d+d,d-g� ejAd.d/d0� ejAd.d1d0� ejAd.d2d0� d3ZBd3ZCdS )4aD NumPy ===== Provides 1. An array object of arbitrary homogeneous items 2. Fast mathematical operations over arrays 3. Linear Algebra, Fourier Transforms, Random Number Generation How to use the documentation ---------------------------- Documentation is available in two forms: docstrings provided with the code, and a loose standing reference guide, available from `the NumPy homepage <http://www.scipy.org>`_. We recommend exploring the docstrings using `IPython <http://ipython.scipy.org>`_, an advanced Python shell with TAB-completion and introspection capabilities. See below for further instructions. The docstring examples assume that `numpy` has been imported as `np`:: >>> import numpy as np Code snippets are indicated by three greater-than signs:: >>> x = 42 >>> x = x + 1 Use the built-in ``help`` function to view a function's docstring:: >>> help(np.sort) ... # doctest: +SKIP For some objects, ``np.info(obj)`` may provide additional help. This is particularly true if you see the line "Help on ufunc object:" at the top of the help() page. Ufuncs are implemented in C, not Python, for speed. The native Python help() does not know how to view their help, but our np.info() function does. To search for documents containing a keyword, do:: >>> np.lookfor('keyword') ... # doctest: +SKIP General-purpose documents like a glossary and help on the basic concepts of numpy are available under the ``doc`` sub-module:: >>> from numpy import doc >>> help(doc) ... # doctest: +SKIP Available subpackages --------------------- doc Topical documentation on broadcasting, indexing, etc. lib Basic functions used by several sub-packages. random Core Random Tools linalg Core Linear Algebra Tools fft Core FFT routines polynomial Polynomial tools testing NumPy testing tools f2py Fortran to Python Interface Generator. distutils Enhancements to distutils with support for Fortran compilers support and more. Utilities --------- test Run numpy unittests show_config Show numpy build configuration dual Overwrite certain functions with high-performance Scipy tools matlib Make everything matrices. __version__ NumPy version string Viewing documentation using IPython ----------------------------------- Start IPython with the NumPy profile (``ipython -p numpy``), which will import `numpy` under the alias `np`. Then, use the ``cpaste`` command to paste examples into the shell. To see which functions are available in `numpy`, type ``np.<TAB>`` (where ``<TAB>`` refers to the TAB key), or use ``np.*cos*?<ENTER>`` (where ``<ENTER>`` refers to the ENTER key) to narrow down the list. To view the docstring for a function, use ``np.cos?<ENTER>`` (to view the docstring) and ``np.cos??<ENTER>`` (to view the source code). Copies vs. in-place operation ----------------------------- Most of the functions in `numpy` return a copy of the array argument (e.g., `np.sort`). In-place versions of these functions are often available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. Exceptions to this rule are documented. � )�division�absolute_import�print_functionN� )�ModuleDeprecationWarning�VisibleDeprecationWarning)�_NoValueFz%Running from numpy source directory. )�showz�Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there.)�git_revision)�version)� PackageLoaderc O s t dd�}|| |�S )NT)Zinfunc)r )�packages�options�loader� r �A/opt/alt/python37/lib64/python3.7/site-packages/numpy/__init__.py�pkgload� s r )�add_newdocsr r r )�Tester)�_distributor_init)�core)�*)�compat)�lib)�linalg)�fft)� polynomial)�random)� ctypeslib)�ma)� matrixlib)�long� )�bool�int�float�complex�object�str)r# r$ r% r&