zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
U
O±då@ã
@s¢dZddlZddlZddlmZmZmZmZzeWne    k
rLdZYnXerbej
  d¡n(zddl m ZWn0ek
r¢ZzdZeeƒe‚W5dZ[XYnXd    d
gZiZdd lmZdd lmZdd lTddlmZddlmZdd lTddlmZddlmZddlmZddlmZddlmZddlmZddlmZ dd lTddl!Z"dZ#dZ$dZ%dde$ &d¡fde$ &d¡fde$ &d ¡fd!e$ &d"¡fd#e% &d#¡fgZ'd$d%„e'DƒZ(d&Z#d'e)d(fd)e*d*fd+e+d,fd-e,d.fd/e-d0fd1e.d2fd3e/d4fgZ'dd5d6d!d7d8hZ0e 1d9d%„e'Dƒ¡[#['dd:lm2Z2m3Z3m4Z4m5Z5ej6 7¡e 8d;d<g¡e 8ej¡e 8e j¡e 8ej¡e 8d=d>d?d@dAg¡e 9dB¡[:[;e 9d5¡e 9dC¡e 9dD¡[<dEdFdGdHdIdJdKdLdMdNg
Z=dOd%„e=DƒZ>ej?dPdQdRej?dPdSdRej?dPdTdRdUZ@dUZAdVdW„ZBdXdY„ZCddZlDmEZEeEeFƒZG[Ed[d\„ZHeHƒ[Hd]d^„ZIejJd_kr°ejKd`daNZLeIƒdbZMeNeLƒdkr¦dc &eLddjOjFePeLddjQƒ¡ZMde &eM¡ZeReƒ‚W5QRX[IddlSZSeSjT Udfd¡ZVejJdgkr<eVdkr<z@dZVeS W¡jX Ydh¡ddi…ZZe[djdk„eZDƒƒZZeZdlkrdZVWne\k
r8dZ]YnXneVdkrLdZVne^eVƒZVej_ `eV¡ej_ja b¡e ceSjT Udmdn¡¡dodp„Zd[SddqlemfZfmgZh[[dS)raS
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 <https://numpy.org>`_.
 
We recommend exploring the docstrings using
`IPython <https://ipython.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
---------------------
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
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.
    Note: `numpy.dual` is deprecated.  Use the functions from NumPy or Scipy
    directly instead of importing them from `numpy.dual`.
matlib
    Make everything matrices.
__version__
    NumPy version string
 
Viewing documentation using IPython
-----------------------------------
 
Start IPython and import `numpy` usually under the alias ``np``: `import
numpy as np`.  Then, directly past or use the ``%cpaste`` magic 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.
 
éNé)ÚModuleDeprecationWarningÚVisibleDeprecationWarningÚ_NoValueÚ    _CopyModeFz%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.rr)Ú_distributor_init)Úcore)Ú*)Úcompat)Úlib)Úlinalg)Úfft)Ú
polynomial)Úrandom)Ú    ctypeslib)Úma)Ú    matrixliba–module 'numpy' has no attribute '{n}'.
`np.{n}` was a deprecated alias for the builtin `{n}`. To avoid this error in existing code, use `{n}` by itself. Doing this will not modify any behavior and is safe. {extended_msg}
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecationszCIf you specifically wanted the numpy scalar type, use `np.{}` here.zÃWhen replacing `np.{}`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.)ÚobjectÚÚboolÚbool_ÚfloatÚfloat64ÚcomplexZ
complex128ÚstrÚstr_ÚintcCs i|]\}}|tj||d“qS))ÚnÚ extended_msg©Ú_msgÚformat)Ú.0rr©r$úEd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/__init__.pyÚ
<dictcomp>»sÿr&zC`np.{n}` is a deprecated alias for `{an}`.  (Deprecated NumPy 1.24)Zbool8znp.bool_Zint0znp.intpZuint0znp.uintpZstr0znp.str_Zbytes0z    np.bytes_Zvoid0znp.voidZobject0zk`np.object0` is a deprecated alias for `np.object_`. `object` can be used instead.  (Deprecated NumPy 1.24)ÚlongZulongÚbytesrcCs&i|]\}}}||tj||df“qS))rÚanr )r#rÚaliasr)r$r$r%r&Øs)ÚroundÚabsÚmaxÚminÚ __version__Ú show_configr rrrrZ
issubdtypeÚunicodeÚ ArrayteratorZfvZipmtZirrZmirrZnperZnpvZpmtZppmtÚpvZratecCsi|]}|d|›d“qS)z(In accordance with NEP 32, the function zœ was removed from NumPy version 1.20.  A replacement for this function is available in the numpy_financial library: https://pypi.org/project/numpy-financialr$)r#Únamer$r$r%r&ÿsüÚignoreznumpy.dtype size changed)Úmessageznumpy.ufunc size changedznumpy.ndarray size changedÚremovedcsüddl}z t|‰Wntk
r(Yn"X|jˆtdd‡fdd„}|Szt|\}‰Wntk
rnYnX|jˆtdd|S|tkr¤|jd|›dtdd|tkr¸t    t|ƒ‚|dkrÐddl
m }|S|d    krèd
d l m }|St    d   t|¡ƒ‚dS) Nré)Ú
stacklevelcs tˆƒ‚dS©N)Ú RuntimeError)ÚargsÚkwds©Úmsgr$r%Ú_expiredsz__getattr__.<locals>._expiredzIn the future `np.z4` will be defined as the corresponding NumPy scalar.ÚtestingÚTesterr)rBz!module {!r} has no attribute {!r})ÚwarningsÚ__expired_functions__ÚKeyErrorÚwarnÚDeprecationWarningÚ__deprecated_attrs__Ú__future_scalars__Ú FutureWarningÚ__former_attrs__ÚAttributeErrorZ numpy.testingrArBr"Ú__name__)ÚattrrCr@ÚvalrArBr$r>r%Ú __getattr__s@  
þ   ÿrPcCs&tƒ ¡ddhB}|ddh8}t|ƒS)NrBrAr    r)ÚglobalsÚkeysÚlist)Zpublic_symbolsr$r$r%Ú__dir__Cs ÿrT)Ú PytestTestercCs^z0tdtd}t| |¡tdƒƒdks.tƒ‚Wn(tk
rXd}t| t¡ƒd‚YnXdS)aŽ
        Quick sanity checks for common bugs caused by environment.
        There are some cases e.g. with wrong BLAS ABI that cause wrong
        results under specific runtime conditions that are not necessarily
        achieved during test suite runs, and it is useful to catch those early.
 
        See https://github.com/numpy/numpy/issues/8577 and other
        similar bug reports.
 
        r8)Zdtypeç@gñh㈵øä>zúThe current Numpy installation ({!r}) fails to pass simple sanity checks. This can be caused for example by incorrect BLAS library being linked in, or by mixing package managers (pip, conda, apt, ...). Search closed numpy issues for similar problems.N)ZonesÚfloat32r,ÚdotÚAssertionErrorr;r"Ú__file__)Úxr?r$r$r%Ú _sanity_checkOs  
r\cCsRz8tdddgƒ}tdddƒ}t||ƒ}t||ddd}Wntk
rLYnXd    S)
        Quick Sanity check for Mac OS look for accelerate build bugs.
        Testing numpy polyfit calls init_dgelsd(LAPACK)
        g@rVgð?rr8éT)ZcovN)ÚarrayZlinspaceZpolyvalZpolyfitÚ
ValueError)Úcr[ÚyÚ_r$r$r%Ú _mac_os_checkis 
rcÚdarwinT)Úrecordrz{}: {}éÿÿÿÿa&Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend.
If you compiled yourself, more information is available at:
https://numpy.org/doc/stable/user/building.html#accelerated-blas-lapack-libraries
Otherwise report this to the vendor that provided NumPy.
{}
ZNUMPY_MADVISE_HUGEPAGEÚlinuxÚ.r8ccs|]}t|ƒVqdSr:)r)r#Úvr$r$r%Ú    <genexpr>•srj)ééZNPY_PROMOTION_STATEÚlegacycCs$ddlm}t|tƒ d¡ ¡ƒgS)Nr©ÚPathZ _pyinstaller)ÚpathlibrorrZÚ    with_nameÚresolvernr$r$r%Ú_pyinstaller_hooks_dir«s rs)r/Ú git_revision)iÚ__doc__ÚsysrCZ_globalsrrrrZ__NUMPY_SETUP__Ú    NameErrorÚstderrÚwriteZnumpy.__config__rr0Ú ImportErrorÚer?Ú__all__rHrrr    r r r rrrrrrZ_matÚbuiltinsZ    _builtinsr!Z _specific_msgZ_int_extended_msgr"Z
_type_inforKrZintpZuintprÚbytes_ZvoidZobject_rIÚupdater+r,r-r.Z    getlimitsZ_register_known_typesÚextendÚremover'r1r2Z_financial_namesrDÚfilterwarningsZ
oldnumericZnumarrayrPrTZnumpy._pytesttesterrUrMÚtestr\rcÚplatformÚcatch_warningsÚwÚ error_messageÚlenÚcategoryrr6r;ÚosÚenvironÚgetZ use_hugepageÚunameÚreleaseÚsplitZkernel_versionÚtupler_Z use_hugepagesrZ
multiarrayZ_set_madvise_hugepageZ_multiarray_umathZ _reload_guardZ_set_promotion_statersÚversionr/rtZ__git_version__r$r$r$r%Ú<module>s i
ÿ           ÿ
ÿÿ     úþÿÿù
ÿ
 
 
 
 
ÿû3  ûÿ