
    Kh\[                        S SK r S SKrS SKrS SKrS SKrS SKrS SKrS SKJr  S SK	J
r
  S SKr/ SQr\
" S5      S 5       r\
" S5      S 5       r " S S	5      rS
 rS rS rS rSqSqSS jrSS jr\
" S5      SS j5       rS rS rS rS rg)    N)ndarray)
set_module)get_includeinfoshow_runtimenumpyc                     SSK Jn JnJn  SSKJn  [
        R                  [        R                  [        R                  " 5       S./n/ / peU H0  nX   (       a  UR                  U5        M  UR                  U5        M2     UR                  SUUUS.05         SSKJn  UR                  U" 5       5        U" U5        g	! [         a    [!        S5         N f = f)
a  
Print information about various resources in the system
including available intrinsic support and BLAS/LAPACK library
in use

.. versionadded:: 1.24.0

See Also
--------
show_config : Show libraries in the system on which NumPy was built.

Notes
-----
1. Information is derived with the help of `threadpoolctl <https://pypi.org/project/threadpoolctl/>`_
   library if available.
2. SIMD related information is derived from ``__cpu_features__``,
   ``__cpu_baseline__`` and ``__cpu_dispatch__``

r   __cpu_features____cpu_baseline____cpu_dispatch__)pprint)numpy_versionpythonunamesimd_extensions)baselinefound	not_found)threadpool_infozWARNING: `threadpoolctl` not found in system! Install it by `pip install threadpoolctl`. Once installed, try `np.show_runtime` again for more detailed build informationN)numpy._core._multiarray_umathr   r   r   r   np__version__sysversionplatformr   appendthreadpoolctlr   extendImportErrorprint)	r   r   r   r   config_foundfeatures_foundfeatures_not_foundfeaturer   s	            G/var/www/html/env/lib/python3.13/site-packages/numpy/lib/_utils_impl.pyr   r      s    *  ++!
 L
 *,R&#$!!'*%%g.	 $
 (#+
 61O-. <  6 5 	66s   B= =CCc                  V   SSK n U R                  cJ  [        R                  R	                  [        R                  R                  U R                  5      SS5      nU$ SSKJn  [        R                  R	                  [        R                  R                  UR                  5      S5      nU$ )ac  
Return the directory that contains the NumPy \*.h header files.

Extension modules that need to compile against NumPy may need to use this
function to locate the appropriate include directory.

Notes
-----
When using ``setuptools``, for example in ``setup.py``::

    import numpy as np
    ...
    Extension('extension_name', ...
              include_dirs=[np.get_include()])
    ...

Note that a CLI tool ``numpy-config`` was introduced in NumPy 2.0, using
that is likely preferred for build systems other than ``setuptools``::

    $ numpy-config --cflags
    -I/path/to/site-packages/numpy/_core/include

    # Or rely on pkg-config:
    $ export PKG_CONFIG_PATH=$(numpy-config --pkgconfigdir)
    $ pkg-config --cflags
    -I/path/to/site-packages/numpy/_core/include

Examples
--------
>>> np.get_include()
'.../site-packages/numpy/core/include'  # may vary

r   N_coreinclude)	r   show_configospathjoindirname__file__numpy._corer(   )r   dr(   s      r&   r   r   H   sq    F  GGLL8'9M
 H 	$GGLL8)DH    c                   (    \ rS rSrSrSS jrS rSrg)
_Deprecatev   zn
Decorator class to deprecate old functions.

Refer to `deprecate` for details.

See Also
--------
deprecate

Nc                 (    Xl         X l        X0l        g N)old_namenew_namemessage)selfr8   r9   r:   s       r&   __init___Deprecate.__init__   s      r2   c                   ^^ U R                   nU R                  nU R                  nUc  TR                  nUc  SU-  mOSU< SU< S3mUb  TSU-   -  m[        R
                  " T5      UU4S j5       nXGl        TR                  nUc  TnOUR                  5       R                  S5      n	[        U	SS 5      n
U	S	   R                  5       (       a	  U
S
-  U-   nOC[        U	S	   5      S-   nU	SS  H%  n[        U5      U
:  a    OU[        U5      S-   -  nM'     XS n[        R                  " TS
U
-  5      mT SU 3nXl        U$ )z*
Decorator call.  Refer to ``decorate``.

Nz`%s` is deprecated!`z` is deprecated, use `z
` instead!
c                  H   > [         R                  " T[        SS9  T" U 0 UD6$ )N   
stacklevel)warningswarnDeprecationWarning)argskwdsdepdocfuncs     r&   newfunc$_Deprecate.__call__.<locals>.newfunc   s$    MM&"4C&&&r2      r    z

)r8   r9   r:   __name__	functoolswraps__doc__
expandtabssplit_get_indentlstriplentextwrapindent)r;   rK   rH   kwargsr8   r9   r:   rL   doclinesrZ   skiplinerJ   s    `           @r&   __call___Deprecate.__call__   sd   
 ====,,}}H*X5F  *F dWn$F			' 
	' $ll;CNN$**40E qr+FQx   slS( 58}q(!!"ID4y6)CIM)D & %j__VS6\:FHD&Cr2   )r:   r9   r8   )NNN)rP   
__module____qualname____firstlineno__rS   r<   r`   __static_attributes__ r2   r&   r4   r4   v   s    	
0r2   r4   c                     [         R                  nU  H=  n[        UR                  5       5      nU(       d  M%  [	        U[        U5      U-
  5      nM?     U[         R                  :X  a  SnU$ )zM
Determines the leading whitespace that could be removed from all the lines.
r   )r   maxsizerX   rW   min)r]   rZ   r_   contents       r&   rV   rV      sY     [[Fdkkm$7TW!45F  Mr2   c                      [         R                  " S[        SS9  U (       a  U S   nU SS n [        U 0 UD6" U5      $ [        U 0 UD6$ )a|  
Issues a DeprecationWarning, adds warning to `old_name`'s
docstring, rebinds ``old_name.__name__`` and returns the new
function object.

This function may also be used as a decorator.

.. deprecated:: 2.0
    Use `~warnings.warn` with :exc:`DeprecationWarning` instead.

Parameters
----------
func : function
    The function to be deprecated.
old_name : str, optional
    The name of the function to be deprecated. Default is None, in
    which case the name of `func` is used.
new_name : str, optional
    The new name for the function. Default is None, in which case the
    deprecation message is that `old_name` is deprecated. If given, the
    deprecation message is that `old_name` is deprecated and `new_name`
    should be used instead.
message : str, optional
    Additional explanation of the deprecation.  Displayed in the
    docstring after the warning.

Returns
-------
old_func : function
    The deprecated function.

Examples
--------
Note that ``olduint`` returns a value after printing Deprecation
Warning:

>>> olduint = np.lib.utils.deprecate(np.uint)
DeprecationWarning: `uint64` is deprecated! # may vary
>>> olduint(6)
6

b`deprecate` is deprecated, use `warn` with `DeprecationWarning` instead. (deprecated in NumPy 2.0)rB   rC   r   rN   NrE   rF   rG   r4   )rH   r[   fns      r&   	deprecatero      s\    ` MM	$ 	 !WABx4*6*2..4*6**r2   c                 H    [         R                  " S[        SS9  [        U S9$ )a  
Deprecates a function and includes the deprecation in its docstring.

.. deprecated:: 2.0
    Use `~warnings.warn` with :exc:`DeprecationWarning` instead.

This function is used as a decorator. It returns an object that can be
used to issue a DeprecationWarning, by passing the to-be decorated
function as argument, this adds warning to the to-be decorated function's
docstring and returns the new function object.

See Also
--------
deprecate : Decorate a function such that it issues a
            :exc:`DeprecationWarning`

Parameters
----------
msg : str
    Additional explanation of the deprecation. Displayed in the
    docstring after the warning.

Returns
-------
obj : object

rl   rB   rC   )r:   rm   )msgs    r&   deprecate_with_docrr   	  s*    < MM	$ 	 c""r2   c                    [        U 5      nUnU nSnUR                  U5      nU HW  nXC:X  a  Sn	OUn	U[        U5      -   [        U	5      -   nXB:  a$  US-   [        U5      -   nUS-   SUS-   -  -   U-   nMP  XY-   U-   nMY     U$ )Nz,  rN   z,
rO   rB   )rX   rU   )
name	argumentswidth
firstwidthknewstrsepstrarglistargumentaddstrs
             r&   _split_liner   ;  s    TJAFFoof%G?FFHF+9QX.Ae^c:a<&888CF_x/F  Mr2   c                    [        U [        5       [        5       / 5      n U R                  U R                  0nU R                  /nU R                  /n [        U5      S:X  a   X4$ UR                  S5      nUR                  5        Ho  n[        XE   [        R                  5      (       d  M&  XE   R                  nXb;  d  M;  XE   R                  nUR                  U5        UR                  U5        XqU'   Mq     M  )Nr   )
__import__globalslocalsrP   __dict__rX   popkeys
isinstancetypes
ModuleTyper   )modulethedictdictlist
totraversethisdictxmodnamemoddicts           r&   _makenamedictr   S  s    	68R8Fv/G H//"J
z?a  >>!$A(+u'7'788"+..*&k22GOOG,%%g.'.G$ !	 r2   c                    SnSnS n[        U S[        U 5      5      n[        USU5      nU R                  nU R                  R                  nUc  [
        R                  n[        SXaS9  [        SU R                  US9  [        S	XqS9  [        S
U R                  US9  [        SU" U R                  R                  5      US9  [        SU" U R                  R                  5      US9  [        SU R                  R                  US9  [        S[        U R                  R                   R"                  5      < U< 3US9  [        SSUS9  US;   a$  [        U< [
        R                  < U< 3US9  Sn	OOUS:X  a%  [        U< SU< 3US9  [
        R                  S:g  n	O$[        U< SU< 3US9  [
        R                  S:g  n	[        SU" U	5      US9  [        SU R                  -  US9  g)a  Provide information about ndarray obj.

Parameters
----------
obj : ndarray
    Must be ndarray, not checked.
output
    Where printed output goes.

Notes
-----
Copied over from the numarray module prior to its removal.
Adapted somewhat as only numpy is an option now.

Called by info.

rt   c                     U $ r7   rf   )r   s    r&   <lambda>_info.<locals>.<lambda>{  s    1r2   	__class__rP   Nzclass: filezshape: z	strides: z
itemsize: z	aligned: zcontiguous: z	fortran: zdata pointer: zbyteorder: rO   )endr   )|=F>biglittlez
byteswap: ztype: %s)getattrtypestridesdtype	byteorderr   stdoutr!   shapeitemsizeflagsaligned
contiguousfortranhexctypes_as_parameter_value)
objoutputextraticbpclsnmr   endianbyteswaps
             r&   _infor   g  s   $ E
C	B
#{DI
.C	j#	&BkkGYY  F~	)R%	)SYYV,	+w,	,62	+r#))++,6:	."SYY112@	+syy((v6	 #CJJ$=$=$C$C DeL
 
-Sv.#s}}c2@	33$62==E)c3'f5==H,	,862	*syy
 v.r2   c                    SSK nSSKn[        U S5      (       d  [        U S5      (       a  U R                  n O[        U S5      (       a  U R                  n Uc  [
        R                  nU c  [        [        5        g[        U [        5      (       a
  [        XS9  g[        U [        5      (       a  [        c  [        U5      u  qqSn/ n[         Hq  n [        U   U    n	[        U	5      U;   a  [!        SU-  US9  O?UR#                  [        U	5      5        [!        S	U-  US9  [        U	5        [!        S
U-  US9  US-  nMs     US:X  a  [!        SU -  US9  g[!        SU-  US9  gUR'                  U 5      (       d  UR)                  U 5      (       as  U R*                  n
 [        UR-                  U 5      5      n[1        X-   5      U:  a  [3        XU5      nOX-   n[!        SU-   S-   US9  [!        UR5                  U 5      US9  gUR7                  U 5      (       GaQ  U R*                  n
 [        UR-                  U 5      5      n[1        X-   5      U:  a  [3        XU5      nOX-   n[!        SU-   S-   US9  UR5                  U 5      nUc5  [        U S5      (       a#  [!        UR5                  U R8                  5      US9  O[!        UR5                  U 5      US9  UR;                  U 5      nU Vs/ s H  oS   S:w  d  M  UPM     nnU(       aa  [!        SUS9  U HP  n[=        XS5      nUb,  UR?                  UR5                  U5      =(       d    S5      u  nn[!        SU< SW< 3US9  MR     gg[        U S5      (       a  [!        UR5                  U 5      US9  gg! [$         a     GM  f = f! [.         a    Sn GNf = f! [.         a    Sn GNf = fs  snf )a  
Get help information for an array, function, class, or module.

Parameters
----------
object : object or str, optional
    Input object or name to get information about. If `object` is
    an `ndarray` instance, information about the array is printed.
    If `object` is a numpy object, its docstring is given. If it is
    a string, available modules are searched for matching objects.
    If None, information about `info` itself is returned.
maxwidth : int, optional
    Printing width.
output : file like object, optional
    File like object that the output is written to, default is
    ``None``, in which case ``sys.stdout`` will be used.
    The object has to be opened in 'w' or 'a' mode.
toplevel : str, optional
    Start search at this level.

Notes
-----
When used interactively with an object, ``np.info(obj)`` is equivalent
to ``help(obj)`` on the Python prompt or ``obj?`` on the IPython
prompt.

Examples
--------
>>> np.info(np.polyval) # doctest: +SKIP
   polyval(p, x)
     Evaluate the polynomial p at x.
     ...

When using a string for `object` it is possible to get multiple results.

>>> np.info('fft') # doctest: +SKIP
     *** Found in numpy ***
Core FFT routines
...
     *** Found in numpy.fft ***
 fft(a, n=None, axis=-1)
...
     *** Repeat reference found in numpy.fft.fftpack ***
     *** Total of 3 references found. ***

When the argument is an array, information about the array is printed.

>>> a = np.array([[1 + 2j, 3, -4], [-5j, 6, 0]], dtype=np.complex64)
>>> np.info(a)
class:  ndarray
shape:  (2, 3)
strides:  (24, 8)
itemsize:  8
aligned:  True
contiguous:  True
fortran:  False
data pointer: 0x562b6e0d2860  # may vary
byteorder:  little
byteswap:  False
type: complex64

r   N_ppimport_importer_ppimport_module_ppimport_attr)r   z+
     *** Repeat reference found in %s *** r   z     *** Found in %s ***-rN   zHelp for %s not found.z+
     *** Total of %d references found. ***z()rO   r@   r<   _z

Methods:
Nonez  z  --  rS   ) pydocinspecthasattrr   r   r   r   r   r   r   r   str	_namedictr   	_dictlistidr!   r   KeyError
isfunctionismethodrP   	signature	ExceptionrX   r   getdocisclassr<   
allmethodsr   splitdoc)objectmaxwidthr   toplevelr   r   numfoundobjlistnamestrr   ru   rv   argstrdoc1methodsmethpublic_methodsthisobjmethstrothers                       r&   r   r     s   D ,--6-..((	)	*	*&&~~T
	FG	$	$f$	FC	 	 #0#: Iy G(0c7g% BDKL%
 NN2c7+4w>VLI#h,V4A !  q=*V3&A :<DE
 
		F	#	#w'7'7'?'?	G--f56I t~) (;F%FcFlT!/gnnV$62		 	 	G--f56I t~) (;F%FcFlT!/~~f%<vz**gnnV__5FC'..(v6""6*+2E741gn$7E"0&!&5&%*^^#NN73=v&NGU g6VD '  
	#	#gnnV$62 
$u    	I	  	I	$ FsC   A-NN* (N= +O;O
N'&N'*N:9N:=OOc                 `    [         R                  " S[        SS9  SSKnUR	                  U 5      $ )a  
Protected string evaluation.

.. deprecated:: 2.0
    Use `ast.literal_eval` instead.

Evaluate a string containing a Python literal expression without
allowing the execution of arbitrary non-literal code.

.. warning::

    This function is identical to :py:meth:`ast.literal_eval` and
    has the same security implications.  It may not always be safe
    to evaluate large input strings.

Parameters
----------
source : str
    The string to evaluate.

Returns
-------
obj : object
   The result of evaluating `source`.

Raises
------
SyntaxError
    If the code has invalid Python syntax, or if it contains
    non-literal code.

Examples
--------
>>> np.safe_eval('1')
1
>>> np.safe_eval('[1, 2, 3]')
[1, 2, 3]
>>> np.safe_eval('{"foo": ("bar", 10.0)}')
{'foo': ('bar', 10.0)}

>>> np.safe_eval('import os')
Traceback (most recent call last):
  ...
SyntaxError: invalid syntax

>>> np.safe_eval('open("/home/user/.ssh/id_dsa").read()')
Traceback (most recent call last):
  ...
ValueError: malformed node or string: <_ast.Call object at 0x...>

z`safe_eval` is deprecated. Use `ast.literal_eval` instead. Be aware of security implications, such as memory exhaustion based attacks (deprecated in NumPy 2.0)rB   rC   r   N)rE   rF   rG   astliteral_eval)sourcer   s     r&   	safe_evalr   @  s4    l MM	2 	 F##r2   c                 z   U R                   S:X  a  U$ U R                  SUS9n[        R                  " U5      n[        R                  R                  U5      (       a  UR                  S5      nUR                  5       (       d  U$ [        U[        R                  5      (       a  U$ [        R                  " XUS9  U$ )a7  
Utility function to check median result from data for NaN values at the end
and return NaN in that case. Input result can also be a MaskedArray.

Parameters
----------
data : array
    Sorted input data to median function
result : Array or MaskedArray
    Result of median function.
axis : int
    Axis along which the median was computed.

Returns
-------
result : scalar or ndarray
    Median or NaN in axes which contained NaN in the input.  If the input
    was an array, NaN will be inserted in-place.  If a scalar, either the
    input itself or a scalar NaN.
r   )axisF)where)sizetaker   isnanmaisMaskedArrayfilledanyr   genericcopyto)dataresultr   potential_nansns        r&   _median_nancheckr     s    * yyA~YYrY-N
 A 
uu1HHUO5577 &"**%% IIfA.Mr2   c                      SSK Jn JnJn  [	        U5      S:X  a  [	        U5      S:X  a  gSR                  U5      nU H   nX   (       a  USU S3-  nM  USU S3-  nM"     U$ )a  
Returns a string containing the CPU features supported
by the current build.

The format of the string can be explained as follows:
    - Dispatched features supported by the running machine end with `*`.
    - Dispatched features not supported by the running machine
      end with `?`.
    - Remaining features represent the baseline.

Returns:
    str: A formatted string indicating the supported CPU features.
r   r
   rt   rO   *?)r   r   r   r   rX   r-   )r   r   r   enabled_featuresr%   s        r&   	_opt_infor     sz      !c*:&;q&@xx 01#$!G9A.!G9A.	 $ r2   c                   U R                   b  U R                  SLn/ n/ n/ n/ nU R                   R                  5        Hw  u  pg[        US   5      nXS   La  SnUR	                  U5        UR	                  U5        UR	                  US   5        UR	                  [        U5      S:  a  SOUS   5        My     U(       d  U $ [        X#XEU R                  S9n	[        R                  " XR                  S9$ U R                  bC  U R                  u  p[        U
5      nU R                  c  XL a  U $ [        R                  " X45      $ U R                  c  U $ [        R                  " U R                  5      $ )	a  
Returns the dtype unchanged if it contained no metadata or a copy of the
dtype if it (or any of its structure dtypes) contained metadata.

This utility is used by `np.save` and `np.savez` to drop metadata before
saving.

.. note::

    Due to its limitation this function may move to a more appropriate
    home or change in the future and is considered semi-public API only.

.. warning::

    This function does not preserve more strange things like record dtypes
    and user dtypes may simply return the wrong thing.  If you need to be
    sure about the latter, check the result with:
    ``np.can_cast(new_dtype, dtype, casting="no")``.

Nr   TrN      rB   )namesformatsoffsetstitlesr   )align)fieldsmetadataitemsdrop_metadatar   rX   dictr   r   r   isalignedstructsubdtyper   )r   found_metadatar   r   r   r   ru   fieldfield_dt	structurer  r   new_subdtypes                r&   r  r    sJ   * ||t3 <<--/KD$U1X.HQx'!%LLNN8$NN58$MM#e*q.$eAh? 0 L'^^%	
 xx	)>)>??		#..$X.>>!l&>Lxx-.. >>!Lxx		""r2   )r   r7   )NL   Nr   )r+   r   rY   r   rE   rQ   r   r0   r   numpy._utilsr   r   r   __all__r   r   r4   rV   ro   rr   r   r   r   r   r   r   r   r   r   r  rf   r2   r&   <module>r     s    	 
       # 
 G2 2j G* *ZA AH>+B&#d& 		(3/l G_3 _3D@$F(T<<#r2   