bge@ dZddlZddlZddlmZmZddlmZmZm Z m Z m Z  e n #e $rdZ YnwxYwe rejdnvddlmZ dd lmZn#e$rZd ZeeedZ[wwxYwgd ZiZdd lmZdd lTddlmZddlmZddlmZddlmZdd lTddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z%dd l$Tddl&Z'dZ(dZ)dZ*dde)+dfde)+d fd!e)+d"fd#e)+d$fd%e*+d%fgZ,d&e,DZ-d'Z(d(e.d)fd*e/d+fd,e0d-fd.e1d/fd0e2d1fd2e3d3fd4e4d5fgZ,hd6Z5e6d7e,Dddl7Z7e7d8fed9<[7[([,dd:lm8Z8ej9:e;d;d[=[>e<d?e<d@e<dA[?gdBZ@dCe@DZAejBdDdEFejBdDdGFejBdDdHFdIZCdIZDdJZEdKZFddLlGmHZHeHeIZJ[HdMZKeK[KdNZLejMdOkrejNdPQ5ZOeLdRZPeQeOdkrZdS+eOdTjRjIeSeOdTjTZPdU+ePZeUe dddn #1swxYwY[LddlVZVeVjWXdVdZYejMdWkr_eY] dZYeVjZj[\dXddYZ]e^dZe]DZ]e]d[krdZYn#e_$rdZ`YnwxYweYdZYn eaeYZYejbceY[YejbjdeejfeVjWXd\egrd]nd^d_Zh[Vdd`limjZjmkZl[[dS)aa 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 `_. We recommend exploring the docstrings using `IPython `_, 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 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.`` (where ```` refers to the TAB key), or use ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow down the list. To view the docstring for a function, use ``np.cos?`` (to view the docstring) and ``np.cos??`` (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)_NoValue _CopyMode)ComplexWarningModuleDeprecationWarningVisibleDeprecationWarning TooHardError AxisErrorFz%Running from numpy source directory. )_distributor_init)showzError 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.) exceptionsrrrr r )core)*)compat)r )dtypes)lib)linalg)fft) polynomial)random) ctypeslib)ma) matrixlibamodule '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.zWhen 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.)objectboolbool_floatfloat64complex complex128strstr_intcNi|]"\}}|t||#S))n extended_msg_msgformat).0r&r's E/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/__init__.py r-s> Q  DKK!,K 7 7zC`np.{n}` is a deprecated alias for `{an}`. (Deprecated NumPy 1.24)bool8znp.bool_int0znp.intpuint0znp.uintpstr0znp.str_bytes0z np.bytes_void0znp.voidobject0zk`np.object0` is a deprecated alias for `np.object_`. `object` can be used instead. (Deprecated NumPy 1.24)>r"rlongbytesulongrcTi|]%\}}}||t||f&S))r&anr()r+r&aliasr:s r,r-r-sH!L!L!L0<5"E4;;r;** +!L!L!Lr.z`np.math` is a deprecated alias for the standard library `math` module (Deprecated Numpy 1.25). Replace usages of `np.math` with `math`math)abs __version__ show_config)rrrrr issubdtyper6unicode Arrayterator) fvipmtirrmirrnpernpvpmtppmtpvrateci|] }|d|d S)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-financial)r+names r,r-r-s@&&&  :$:::&&&r.ignoreznumpy.dtype size changed)messageznumpy.ufunc size changedznumpy.ndarray size changedremovedc,ddl}ddl} t||jtdfd}|S#t $rYnwxYw t |\}|jtd|S#t $rYnwxYw|tvr|jd|dtd|tvrtt||dkrddl m }|S|dkr td td t|) Nr) stacklevelc"tN) RuntimeError)argskwdsmsgs r,_expiredz__getattr__.._expired#s"3'''r.zIn the future `np.z4` will be defined as the corresponding NumPy scalar.testingTesterz!Tester was removed in NumPy 1.25.z!module {!r} has no attribute {!r})warningsr<__expired_functions__warnDeprecationWarningKeyError__deprecated_attrs____future_scalars__ FutureWarning__former_attrs__AttributeError numpy.testingr]rXr*__name__)attrr_r<r\valr]r[s @r, __getattr__rms   '-C HM#1a @ @ @ @ ( ( ( ( (O    D  +D1HC HM#1a @ @ @ @J     D  % % % HM.T.../< L L L L # # # !1$!788 8 9   + + + + + +N X   %BCC C$$*F8T$:$:<< A?cvtdhz}|hdz}t|S)Nr]>rr rr rrr)globalskeyslist)public_symbolss r,__dir__rsEsE ))YK7     N###r.) PytestTesterc, tdt}t||tdz dkst dS#t$r+d}t |tdwxYw)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. rT)dtype@gh㈵>zThe 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)onesfloat32r=dotAssertionErrorrXr*__file__)xr[s r, _sanity_checkr~Ts ?Qg&&&AquuQxx'#,,.//$66$&&&76 ? ? ?8C szz(3344$ >  ?s AA5Bc tgd}tddd}t||}t||dd}dS#t$rYdSwxYw)z Quick Sanity check for Mac OS look for accelerate build bugs. Testing numpy polyfit calls init_dgelsd(LAPACK) )g@rwg?rrTT)covN)arraylinspacepolyvalpolyfit ValueError)cr}y_s r, _mac_os_checkrnsr  lll##AAq!!A1 A1aT***AAA    DD sAA AAdarwinT)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. {} NUMPY_MADVISE_HUGEPAGElinux.rTc#4K|]}t|VdSrW)r$)r+vs r, rs("B"Ba3q66"B"B"B"B"B"Br.)NPY_PROMOTION_STATEweaklegacycddlm}t|tdgS)NrPath _pyinstaller)pathlibrr"r| with_nameresolvers r,_pyinstaller_hooks_dirrsG      DDNN,,^<<DDFFGGHHr.)r> git_revision)m__doc__sysr__globalsrrr rrrr r __NUMPY_SETUP__ NameErrorstderrwriterr numpy.__config__r r? ImportErrorer[__all__rdrrrrrrrrrrr_matbuiltins _builtinsr) _specific_msg_int_extended_msgr* _type_inforgrintpuintpr#bytes_voidobject_reupdater<r= getlimits_register_known_typesextendremover6rArB_financial_namesr`filterwarnings oldnumericnumarrayrmrsnumpy._pytesttesterrtrjtestr~rplatformcatch_warningsw error_messagelencategoryr"rQrXosenvironget use_hugepageunamereleasesplitkernel_versiontupler use_hugepagesr$ multiarray_set_madvise_hugepage_multiarray_umath _reload_guard_set_promotion_state_using_numpy2_behaviorrversionr>r__git_version__rNr.r,rscddJ )))))))) OOOOOC J=>>>>$#####&8888888 &&&/k#A% & 777G ######!    O  N "  %%g../ -&&y112 M((667  $$V,,- !((//0 2J * N %$ y! %$ y! 6;' $ " G E F GJ MLL!L!L@J!L!L!LMMMKKK$( $ dJN((*** NNM=1222 NN4<    NN4<    NN3; NNAAABBB NN<   g NN6 NN9 NN>""" ...&& % &&&HH.HIIIIHH.HIIIIHH.JKKKKJH,<,<,<\$$$100000 < ! !D???.MOOO    |x $X $D 1 1 1 (Q MOOOMs1vvzz ("0GQrU]I[I[ \ \ 1 28 1F1F #l3''' ( ( ( ( ( ( ( ( ( ( ( ( ( ( (  III:>>":DAAL |w<#7  L%RXZZ/55c::2A2>N"U"B"B>"B"B"BBBN&&    MMM    s<((  O)),777  O%33555D ,!7!7!9!9Gvvx I IJJJ III BAAAAAAAsJ%//AA6#A11A6,A6N//N36N3(AP77QQ