__init__.pyc
1 o 2 Z��c; � 3 @ s& d Z ddlZddlZddlmZmZmZmZ ze W n e y% dZY nw er0ej 4 �d� �n�zddlm Z W n eyK Z zdZee�e�dZ[ww d d 5 gZi ZddlmZ ddlmZ dd lT ddlmZ ddlmZ dd lT ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lT dZ!de"dfde#dfde$dfde%dfd e&d!fd"e'd#fd$e(d%fgZ)h d&�Z*e�+d'd(� e)D �� [![)dd)lm,Z,m-Z-m.Z.m/Z/ ej0�1� e�2d*d+g� e�2ej� e�2e j� e�2ej� e�2g d,�� e�3d-� [4[5e�3d.� e�3d/� e�3d0� [6g d1�Z7d2d(� e7D �Z8ej9d3d4d5� ej9d3d6d5� ej9d3d7d5� d8Z:d8Z;d9d:� Z<d;d<� Z=dd=l>m?Z? e?e@�ZA[?d>d?� ZBeB� [Bd@dA� ZCejDdBk�r�ejEdCdD��,ZFeC� dEZGeHeF�dk�r�dF�IeFdG jJj@eKeFdG jL��ZGdH�IeG�ZeMe��W d � n 1 �s�w Y [CddlNZNeNjO�PdId�ZQejDdJk�r�eQdu �r�z dZQeN�R� jS�TdK�ddL� ZUeVdMdN� eUD ��ZUeUdOk �r�dZQW n eW�y� dZXY n w eQdu �r�dZQneYeQ�ZQejZ�[eQ� ejZj\�]� e�^eNjO�PdPdQ�� dRdS� Z_[NddTl`maZambZc [[dS )UaS 6 NumPy 7 ===== 8 9 Provides 10 1. An array object of arbitrary homogeneous items 11 2. Fast mathematical operations over arrays 12 3. Linear Algebra, Fourier Transforms, Random Number Generation 13 14 How to use the documentation 15 ---------------------------- 16 Documentation is available in two forms: docstrings provided 17 with the code, and a loose standing reference guide, available from 18 `the NumPy homepage <https://numpy.org>`_. 19 20 We recommend exploring the docstrings using 21 `IPython <https://ipython.org>`_, an advanced Python shell with 22 TAB-completion and introspection capabilities. See below for further 23 instructions. 24 25 The docstring examples assume that `numpy` has been imported as ``np``:: 26 27 >>> import numpy as np 28 29 Code snippets are indicated by three greater-than signs:: 30 31 >>> x = 42 32 >>> x = x + 1 33 34 Use the built-in ``help`` function to view a function's docstring:: 35 36 >>> help(np.sort) 37 ... # doctest: +SKIP 38 39 For some objects, ``np.info(obj)`` may provide additional help. This is 40 particularly true if you see the line "Help on ufunc object:" at the top 41 of the help() page. Ufuncs are implemented in C, not Python, for speed. 42 The native Python help() does not know how to view their help, but our 43 np.info() function does. 44 45 To search for documents containing a keyword, do:: 46 47 >>> np.lookfor('keyword') 48 ... # doctest: +SKIP 49 50 General-purpose documents like a glossary and help on the basic concepts 51 of numpy are available under the ``doc`` sub-module:: 52 53 >>> from numpy import doc 54 >>> help(doc) 55 ... # doctest: +SKIP 56 57 Available subpackages 58 --------------------- 59 lib 60 Basic functions used by several sub-packages. 61 random 62 Core Random Tools 63 linalg 64 Core Linear Algebra Tools 65 fft 66 Core FFT routines 67 polynomial 68 Polynomial tools 69 testing 70 NumPy testing tools 71 distutils 72 Enhancements to distutils with support for 73 Fortran compilers support and more. 74 75 Utilities 76 --------- 77 test 78 Run numpy unittests 79 show_config 80 Show numpy build configuration 81 dual 82 Overwrite certain functions with high-performance SciPy tools. 83 Note: `numpy.dual` is deprecated. Use the functions from NumPy or Scipy 84 directly instead of importing them from `numpy.dual`. 85 matlib 86 Make everything matrices. 87 __version__ 88 NumPy version string 89 90 Viewing documentation using IPython 91 ----------------------------------- 92 93 Start IPython and import `numpy` usually under the alias ``np``: `import 94 numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 95 examples into the shell. To see which functions are available in `numpy`, 96 type ``np.<TAB>`` (where ``<TAB>`` refers to the TAB key), or use 97 ``np.*cos*?<ENTER>`` (where ``<ENTER>`` refers to the ENTER key) to narrow 98 down the list. To view the docstring for a function, use 99 ``np.cos?<ENTER>`` (to view the docstring) and ``np.cos??<ENTER>`` (to view 100 the source code). 101 102 Copies vs. in-place operation 103 ----------------------------- 104 Most of the functions in `numpy` return a copy of the array argument 105 (e.g., `np.sort`). In-place versions of these functions are often 106 available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 107 Exceptions to this rule are documented. 108 109 � N� )�ModuleDeprecationWarning�VisibleDeprecationWarning�_NoValue� _CopyModeFz%Running from numpy source directory. 110 )�showz�Error importing numpy: you should not try to import numpy from 111 its source directory; please exit the numpy source tree, and relaunch 112 your python interpreter from there.r r )�_distributor_init)�core)�*)�compat)�lib)�linalg)�fft)� 113 polynomial)�random)� ctypeslib)�ma)� matrixlibzC`np.{n}` is a deprecated alias for `{an}`. (Deprecated NumPy 1.24)�bool8znp.bool_�int0znp.intp�uint0znp.uintp�str0znp.str_�bytes0z np.bytes_�void0znp.void�object0zk`np.object0` is a deprecated alias for `np.object_`. `object` can be used instead. (Deprecated NumPy 1.24)> �bytes�ulong�bool�str�long�objectc C s&