ó
    Eñi÷þ  ã            
       ó´  • S r / SQrSrSSKrSSKrSSKr SSKJ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JrJrJrJrJrJr  SS
KJrJrJr  SSKJrJ r J!r!J"r"  SSK#J$r$J%r%  SSK&J'r'  SSK(J)r)J*r*J+r+J,r,      SHS jr-\%" S5         SISSS.S jj5       r.   SISSS.S jjr/\%" S5      S 5       r0S r1\%" S5      \
Rd                  S 5       5       r&SJS jr3S r4S r5S r6S r7S r8SKS jr9\9" 5       SLS j5       r:  SMSSSSSSSS .S! jjr;\$" \;SS"9  SNSSSSSSSS .S# jj5       r<S$ r=S% r>S& r?S' r@ " S( S)5      rA\%" S5         SOS* j5       rB\%" S5         SPS+ j5       rC " S, S-5      rD " S. S/5      rE " S0 S15      rF " S2 S35      rG " S4 S5\G5      rH " S6 S7\G5      rI " S8 S95      rJ " S: S;5      rKSQS< jrL\"\!\\Rš                  /rNS= rOS> rPSSS\<4S? jrQ SRS@ jrR\$" \RSS"9SRSA j5       rS\9" 5       SB 5       rTSSS\<4SC jrU SRSD jrV\$" \VSS"9SRSE j5       rW\X" \<SF\<5      rY\R´                  " \U\YSG9r[\R´                  " \Q\YSG9r\g! \ a
    SSK	Jr   GN:f = f)SzXArray printing function

$Id: arrayprint.py,v 1.9 2005/09/13 13:58:44 teoliphant Exp $

)Úarray2stringÚ	array_strÚ
array_reprÚset_printoptionsÚget_printoptionsÚprintoptionsÚformat_float_positionalÚformat_float_scientificÚrestructuredtexté    N)Ú	get_identé   )Únumerictypes)Úany)ÚarrayÚdatetime_as_stringÚdatetime_dataÚdragon4_positionalÚdragon4_scientificÚndarray)ÚasarrayÚconcatenateÚerrstate)Ú
complex128ÚflexibleÚfloat64Úint_)Úarray_function_dispatchÚ
set_module)Úformat_options)ÚabsoluteÚisfiniteÚisinfÚisnatc                 óš  • [        [        5       R                  5       5       VVs0 s H  u  pÍUc  M
  XÍ_M     nnnUb  [        U5      US'   / SQnXŸS/-   ;  a$  [	        SSR                  S U 5       5      -   5      eUS;  a  [	        S5      eU
S	L a  [        R                  US
'   OŽU
S	:X  a3  [        R                  " SU
< S3[        SS9  [        R                  US
'   OUU
S:X  a  SUS
'   OIU
S:X  a  SUS
'   O=U
S:X  a  SUS
'   O1U
S:X  a  SUS
'   O%U
S:X  a  SUS
'   OU
c  O[        R                  " SSS9  UbP  [        U[        R                  5      (       d  [        S5      e[        R                   " U5      (       a  [	        S5      eU b   ["        R$                  " U 5      US'   U$ U$ s  snnf ! [         a  n[        S5      UeSnAff = f)za
Make a dictionary out of the non-None arguments, plus conversion of
*legacy* and sanity checks.
NÚsuppress)ÚfixedÚuniqueÚmaxprecÚmaxprec_equalz floatmode option must be one of ú, c              3   ó.   #   • U  H  nS U S 3v •  M     g7f)Ú"N© )Ú.0Úms     ÚS/home/mande/repo/quber/.venv/lib/python3.13/site-packages/numpy/_core/arrayprint.pyÚ	<genexpr>Ú%_make_options_dict.<locals>.<genexpr>J   s   é € Ð";²U° Q q c¨¥8²Uùs   ‚)NÚ-Ú+Ú z+sign option must be one of ' ', '+', or '-'FÚlegacyzPassing `legacy=z` is deprecated.é   )Ú
stacklevelú1.13éq   ú1.21éy   ú1.25é}   ú2.1éÉ   ú2.2éÊ   z\legacy printing option can currently only be '1.13', '1.21', '1.25', '2.1', '2.2' or `False`zthreshold must be numericzIthreshold must be non-NAN, try sys.maxsize for untruncated representationÚ	precisionzprecision must be an integer)ÚlistÚlocalsÚitemsÚboolÚ
ValueErrorÚjoinÚsysÚmaxsizeÚwarningsÚwarnÚFutureWarningÚ
isinstanceÚnumbersÚNumberÚ	TypeErrorÚnpÚisnanÚoperatorÚindex)rC   Ú	thresholdÚ	edgeitemsÚ	linewidthr%   ÚnanstrÚinfstrÚsignÚ	formatterÚ	floatmoder6   Úoverride_reprÚkÚvÚoptionsÚmodesÚes                    r0   Ú_make_options_dictre   9   sð  € ô !%¤V£X§^¡^Ó%5Ô 6ÔHÒ 6™˜¸!‹tˆqŠtÑ 6€GÑHàÑÜ" 8›nˆ�
Ñâ;€EØ  ™Ó&ÜÐ;ØŸ™Ñ";±UÓ";Ó;ñ<ó =ð 	=ð Ð(Ó(ÜÐFÓGÐGà�‚ÜŸK™Kˆ�ÒØ	�5‹Ü�ŠØ˜v™jÐ(8Ð9Ü aò	
ô  ŸK™Kˆ�ÒØ	�6Ó	Øˆ�ÒØ	�6Ó	Øˆ�ÒØ	�6Ó	Øˆ�ÒØ	�5‹Øˆ�ÒØ	�5‹Øˆ�ÒØ	‰Øä�Šð.Ø:;ò	=ð Ñä˜)¤W§^¡^×4Ñ4ÜÐ7Ó8Ð8Ü�8Š8�I×ÑÜð Jó Kð Kð Ñð	CÜ#+§>¢>°)Ó#<ˆG�KÑ ð €Nˆ7€Nùók Iøôd ó 	CÜÐ:Ó;ÀÐBûð	Cús"   ¥	F)²F)ÆF/ Æ/
G
Æ9GÇG
Únumpy©r6   r_   c
                ó"   • [        XX#UXVXxU	X«S9  g)aÍ  
Set printing options.

These options determine the way floating point numbers, arrays and
other NumPy objects are displayed.

Parameters
----------
precision : int or None, optional
    Number of digits of precision for floating point output (default 8).
    May be None if `floatmode` is not `fixed`, to print as many digits as
    necessary to uniquely specify the value.
threshold : int, optional
    Total number of array elements which trigger summarization
    rather than full repr (default 1000).
    To always use the full repr without summarization, pass `sys.maxsize`.
edgeitems : int, optional
    Number of array items in summary at beginning and end of
    each dimension (default 3).
linewidth : int, optional
    The number of characters per line for the purpose of inserting
    line breaks (default 75).
suppress : bool, optional
    If True, always print floating point numbers using fixed point
    notation, in which case numbers equal to zero in the current precision
    will print as zero.  If False, then scientific notation is used when
    absolute value of the smallest number is < 1e-4 or the ratio of the
    maximum absolute value to the minimum is > 1e3. The default is False.
nanstr : str, optional
    String representation of floating point not-a-number (default nan).
infstr : str, optional
    String representation of floating point infinity (default inf).
sign : string, either '-', '+', or ' ', optional
    Controls printing of the sign of floating-point types. If '+', always
    print the sign of positive values. If ' ', always prints a space
    (whitespace character) in the sign position of positive values.  If
    '-', omit the sign character of positive values. (default '-')

    .. versionchanged:: 2.0
         The sign parameter can now be an integer type, previously
         types were floating-point types.

formatter : dict of callables, optional
    If not None, the keys should indicate the type(s) that the respective
    formatting function applies to.  Callables should return a string.
    Types that are not specified (by their corresponding keys) are handled
    by the default formatters.  Individual types for which a formatter
    can be set are:

    - 'bool'
    - 'int'
    - 'timedelta' : a `numpy.timedelta64`
    - 'datetime' : a `numpy.datetime64`
    - 'float'
    - 'longfloat' : 128-bit floats
    - 'complexfloat'
    - 'longcomplexfloat' : composed of two 128-bit floats
    - 'numpystr' : types `numpy.bytes_` and `numpy.str_`
    - 'object' : `np.object_` arrays

    Other keys that can be used to set a group of types at once are:

    - 'all' : sets all types
    - 'int_kind' : sets 'int'
    - 'float_kind' : sets 'float' and 'longfloat'
    - 'complex_kind' : sets 'complexfloat' and 'longcomplexfloat'
    - 'str_kind' : sets 'numpystr'
floatmode : str, optional
    Controls the interpretation of the `precision` option for
    floating-point types. Can take the following values
    (default maxprec_equal):

    * 'fixed': Always print exactly `precision` fractional digits,
            even if this would print more or fewer digits than
            necessary to specify the value uniquely.
    * 'unique': Print the minimum number of fractional digits necessary
            to represent each value uniquely. Different elements may
            have a different number of digits. The value of the
            `precision` option is ignored.
    * 'maxprec': Print at most `precision` fractional digits, but if
            an element can be uniquely represented with fewer digits
            only print it with that many.
    * 'maxprec_equal': Print at most `precision` fractional digits,
            but if every element in the array can be uniquely
            represented with an equal number of fewer digits, use that
            many digits for all elements.
legacy : string or `False`, optional
    If set to the string ``'1.13'`` enables 1.13 legacy printing mode. This
    approximates numpy 1.13 print output by including a space in the sign
    position of floats and different behavior for 0d arrays. This also
    enables 1.21 legacy printing mode (described below).

    If set to the string ``'1.21'`` enables 1.21 legacy printing mode. This
    approximates numpy 1.21 print output of complex structured dtypes
    by not inserting spaces after commas that separate fields and after
    colons.

    If set to ``'1.25'`` approximates printing of 1.25 which mainly means
    that numeric scalars are printed without their type information, e.g.
    as ``3.0`` rather than ``np.float64(3.0)``.

    If set to ``'2.1'``, shape information is not given when arrays are
    summarized (i.e., multiple elements replaced with ``...``).

    If set to ``'2.2'``, the transition to use scientific notation for
    printing ``np.float16`` and ``np.float32`` types may happen later or
    not at all for larger values.

    If set to `False`, disables legacy mode.

    Unrecognized strings will be ignored with a warning for forward
    compatibility.

    .. versionchanged:: 1.22.0
    .. versionchanged:: 2.2

override_repr: callable, optional
    If set a passed function will be used for generating arrays' repr.
    Other options will be ignored.

See Also
--------
get_printoptions, printoptions, array2string


Notes
-----

* ``formatter`` is always reset with a call to `set_printoptions`.
* Use `printoptions` as a context manager to set the values temporarily.
* These print options apply only to NumPy ndarrays, not to scalars.

**Concurrency note:** see :ref:`text_formatting_options`

Examples
--------
Floating point precision can be set:

>>> import numpy as np
>>> np.set_printoptions(precision=4)
>>> np.array([1.123456789])
[1.1235]

Long arrays can be summarised:

>>> np.set_printoptions(threshold=5)
>>> np.arange(10)
array([0, 1, 2, ..., 7, 8, 9], shape=(10,))

Small results can be suppressed:

>>> eps = np.finfo(float).eps
>>> x = np.arange(4.)
>>> x**2 - (x + eps)**2
array([-4.9304e-32, -4.4409e-16,  0.0000e+00,  0.0000e+00])
>>> np.set_printoptions(suppress=True)
>>> x**2 - (x + eps)**2
array([-0., -0.,  0.,  0.])

A custom formatter can be used to display array elements as desired:

>>> np.set_printoptions(formatter={'all':lambda x: 'int: '+str(-x)})
>>> x = np.arange(3)
>>> x
array([int: 0, int: -1, int: -2])
>>> np.set_printoptions()  # formatter gets reset
>>> x
array([0, 1, 2])

To put back the default options, you can use:

>>> np.set_printoptions(edgeitems=3, infstr='inf',
... linewidth=75, nanstr='nan', precision=8,
... suppress=False, threshold=1000, formatter=None)

Also to temporarily override options, use `printoptions`
as a context manager:

>>> with np.printoptions(precision=2, suppress=True, threshold=5):
...     np.linspace(0, 10, 10)
array([ 0.  ,  1.11,  2.22, ...,  7.78,  8.89, 10.  ], shape=(10,))

rg   N)Ú_set_printoptions)rC   rW   rX   rY   r%   rZ   r[   r]   r\   r^   r6   r_   s               r0   r   r   z   s   € ôx �i¨IÀ(Ø i°yØ#óBó    c
                óÌ   • [        XX#XEXhUXš5      nX|S'   X¼S'   [        R                  " 5       U-  nUR                  U5        US   S:X  a  SUS'   [        R                  " U5      $ )Nr]   r_   r6   r:   r3   r\   )re   r   ÚgetÚupdateÚset)rC   rW   rX   rY   r%   rZ   r[   r]   r\   r^   r6   r_   Únew_optÚupdated_opts                 r0   ri   ri   ;  sw   € ô ! °yØ!)°6ÀØ!*ó4€Gð %ˆKÑØ,ˆOÑä ×$Ò$Ó&¨Ñ0€KØ×Ñ�wÔà�8Ñ Ó#Ø!ˆ�FÑä×Ò˜kÓ*Ð*rj   c                  ó–   • [         R                  " 5       R                  5       n SSSSSSSSS	S
[        R                  S0U S      U S'   U $ )ax  
Return the current print options.

Returns
-------
print_opts : dict
    Dictionary of current print options with keys

    - precision : int
    - threshold : int
    - edgeitems : int
    - linewidth : int
    - suppress : bool
    - nanstr : str
    - infstr : str
    - sign : str
    - formatter : dict of callables
    - floatmode : str
    - legacy : str or False

    For a full description of these options, see `set_printoptions`.

Notes
-----
These print options apply only to NumPy ndarrays, not to scalars.

**Concurrency note:** see :ref:`text_formatting_options`

See Also
--------
set_printoptions, printoptions

Examples
--------
>>> import numpy as np

>>> np.get_printoptions()
{'edgeitems': 3, 'threshold': 1000, ..., 'override_repr': None}

>>> np.get_printoptions()['linewidth']
75
>>> np.set_printoptions(linewidth=100)
>>> np.get_printoptions()['linewidth']
100

r:   r9   r<   r;   r>   r=   r@   r?   rB   rA   Fr6   )r   rl   ÚcopyrJ   rK   )Úoptss    r0   r   r   O  sZ   € ô` ×ÒÓ×$Ñ$Ó&€DàˆV�S˜& # v¨s°EØˆU”C—K‘K ðð ˆ8�nñ€Dˆ�Nð €Krj   c                  ó2   • [         R                  " 5       S   $ )z'Return the legacy print mode as an int.r6   )r   rl   r-   rj   r0   Ú_get_legacy_print_moderu   ‡  s   € ä×ÒÓ Ñ)Ð)rj   c               /   óž   #   • [        U 0 UD6n [        5       v •  [        R                  " U5        g! [        R                  " U5        f = f7f)aã  Context manager for setting print options.

Set print options for the scope of the `with` block, and restore the old
options at the end. See `set_printoptions` for the full description of
available options.

Examples
--------
>>> import numpy as np

>>> from numpy.testing import assert_equal
>>> with np.printoptions(precision=2):
...     np.array([2.0]) / 3
array([0.67])

The `as`-clause of the `with`-statement gives the current print options:

>>> with np.printoptions(precision=2) as opts:
...      assert_equal(opts, np.get_printoptions())

See Also
--------
set_printoptions, get_printoptions

Notes
-----
These print options apply only to NumPy ndarrays, not to scalars.

**Concurrency note:** see :ref:`text_formatting_options`

N)ri   r   r   Úreset)ÚargsÚkwargsÚtokens      r0   r   r   Œ  sA   é € ôD ˜tÐ. vÑ.€Eð$ÜÓ Ò ä×Ò˜UÕ#øŒ×Ò˜UÕ#üs   ‚A�2 ›A²A
Á
Ac                 ó<  • [        U5      nX0R                  :X  a  X   $ U R                  U   SU-  :”  aI  [        [	        XU[
        R                  SU -   5      [	        XU[
        R                  U* S -   5      4US9$ [	        XU[
        R                  SS -   5      $ )z§
Keep only the N-D corners (leading and trailing edges) of an array.

Should be passed a base-class ndarray, since it makes no guarantees about
preserving subclasses.
é   N)Úaxis)ÚlenÚndimÚshaper   Ú_leading_trailingrS   Ú	index_exp)ÚarX   rV   r}   s       r0   r�   r�   ¶  sš   € ô ˆu‹:€DØ�v‰vƒ~Ø‰xˆà‡w�wˆt�}�q˜9‘}Ó$ÜÜ˜a¨E´B·L±LÀÀ)Ð4LÑ,LÓMÜ˜a¨E´B·L±LÀ)ÀÀÐ4MÑ,MÓNð
ð ñð 	ô
 ! ¨u´r·|±|ÁA°Ñ/FÓGÐGrj   c                 óR   • [        U 5      [        L a  SnOSnUR                  U 5      $ )z?Object arrays containing lists should be printed unambiguously z
list({!r})z{!r})ÚtyperD   Úformat)ÚoÚfmts     r0   Ú_object_formatr‰   Ê  s%   € äˆAƒw”$‚Ø‰àˆØ�:‰:�a‹=Ðrj   c                 ó¨   • [        U [        R                  [        R                  45      (       a  [	        U R                  5       5      $ [	        U 5      $ ©N)rO   rS   Ústr_Úbytes_ÚreprÚitem©Úxs    r0   Úrepr_formatr’   Ò  s5   € Ü�!”b—g‘gœrŸy™yÐ)×*Ñ*Ü�A—F‘F“H‹~ÐÜ�‹7€Nrj   c                 ó¨   • [        U [        R                  [        R                  45      (       a  [	        U R                  5       5      $ [	        U 5      $ r‹   )rO   rS   rŒ   r�   Ústrr�   r�   s    r0   Ú
str_formatr•   ×  s5   € Ü�!”b—g‘gœrŸy™yÐ)×*Ñ*Ü�1—6‘6“8‹}ÐÜˆq‹6€Mrj   c                ó|  ^ ^^^^^• U 4S jU U4S jU UUUUU4S jU UUUUU4S jU UUUUU4S jU UUUUU4S jU U4S jU 4S jS	 S
 S S.nS n	Ubã  UR                  5        V
s/ s H  o¦U
   c  M
  U
PM     nn
SU;   a$  UR                  5        H  nU	" US   5      XŒ'   M     SU;   a  S H  nU	" US   5      XŒ'   M     SU;   a  S H  nU	" US   5      XŒ'   M     SU;   a  S H  nU	" US   5      XŒ'   M     SU;   a  U	" US   5      US'   UR                  5        H  nXË;   d  M
  U	" Xl   5      XŒ'   M     U$ s  sn
f )Nc                  ó   >• [        T 5      $ r‹   )Ú
BoolFormat©Údatas   €r0   Ú<lambda>Ú!_get_formatdict.<locals>.<lambda>ã  s
   ø€ œ
 4Ô(rj   c                  ó   >• [        T T5      $ r‹   )ÚIntegerFormat)rš   r\   s   €€r0   r›   rœ   ä  s   ø€ ”} T¨4Ô0rj   c            	      ó    >• [        T TTTTTS9$ ©N©r6   ©ÚFloatingFormat©rš   r^   r6   rC   r\   r%   s   €€€€€€r0   r›   rœ   å  s   ø€ œØ�)˜Y¨°$¸vòGrj   c            	      ó    >• [        T TTTTTS9$ r    r¢   r¤   s   €€€€€€r0   r›   rœ   ç  s   ø€ œ^Ø�)˜Y¨°$¸vòGrj   c            	      ó    >• [        T TTTTTS9$ r    ©ÚComplexFloatingFormatr¤   s   €€€€€€r0   r›   rœ   é  s   ø€ Ô 5Ø�)˜Y¨°$¸vò!Grj   c            	      ó    >• [        T TTTTTS9$ r    r§   r¤   s   €€€€€€r0   r›   rœ   ë  s   ø€ Ô$9Ø�)˜Y¨°$¸vò%Grj   c                  ó   >• [        T TS9$ r    )ÚDatetimeFormat)rš   r6   s   €€r0   r›   rœ   í  s   ø€ œN¨4¸Ò?rj   c                  ó   >• [        T 5      $ r‹   )ÚTimedeltaFormatr™   s   €r0   r›   rœ   î  s
   ø€ œ_¨TÔ2rj   c                  ó   • [         $ r‹   )r‰   r-   rj   r0   r›   rœ   ï  s   € �.rj   c                  ó   • [         $ r‹   )r•   r-   rj   r0   r›   rœ   ð  s   € �
rj   c                  ó   • [         $ r‹   )r’   r-   rj   r0   r›   rœ   ñ  s   € �Krj   )rG   ÚintÚfloatÚ	longfloatÚcomplexfloatÚlongcomplexfloatÚdatetimeÚ	timedeltaÚobjectÚvoidÚnumpystrc                 ó   ^ • U 4S j$ )Nc                  ó   >• T $ r‹   r-   r�   s   €r0   r›   Ú3_get_formatdict.<locals>.indirect.<locals>.<lambda>ö  s   ø€ ‘qrj   r-   r�   s   `r0   ÚindirectÚ!_get_formatdict.<locals>.indirectõ  s	   ø€ ÜÐrj   ÚallÚint_kind)r±   Ú
float_kind)r²   r³   Úcomplex_kind)r´   rµ   Ústr_kindrº   )Úkeys)rš   rC   r^   r%   r\   r6   r]   ry   Ú
formatdictr¾   r`   ÚfkeysÚkeys   ``````       r0   Ú_get_formatdictrÉ   Ü  s_  ý€ ô )Ý0÷Gñ G÷Gñ G÷Gñ G÷Gñ Gå?Ü2Ù(Ù"Ù'ñ)€Jò&ð ÑØ%ŸN™NÔ,ÓIÒ,�q¸!±—Ñ,ˆÐIØ�E‹>Ø!—‘Ö(�Ù"*¨9°UÑ+;Ó"<�
“ñ )à˜ÓÛ�Ù"*¨9°ZÑ+@Ó"A�
“ñ à˜5Ó Û-�Ù"*¨9°\Ñ+BÓ"C�
“ñ .à˜UÓ"Û;�Ù"*¨9°^Ñ+DÓ"E�
“ñ <à˜ÓÙ%-¨i¸
Ñ.CÓ%DˆJ�zÑ"Ø—?‘?Ö$ˆCØ�|Ù"*¨9©>Ó":�
“ñ %ð Ðùò' Js   Á&	D9Á3D9c                 óf  • U R                   nUR                  n[        U 40 UD6nUc
  US   " 5       $ [        U[        R
                  5      (       a
  US   " 5       $ [        U[        R                  5      (       a3  [        U[        R                  5      (       a
  US   " 5       $ US   " 5       $ [        U[        R                  5      (       a3  [        U[        R                  5      (       a
  US   " 5       $ US   " 5       $ [        U[        R                  5      (       a3  [        U[        R                  5      (       a
  US   " 5       $ US   " 5       $ [        U[        R                  [        R                  45      (       a
  US   " 5       $ [        U[        R                  5      (       a
  US	   " 5       $ [        U[        R                  5      (       a
  US
   " 5       $ [        U[        R                   5      (       a.  UR"                  b  [$        R&                  " U 40 UD6$ US   " 5       $ US   " 5       $ )z3
find the right formatting function for the dtype_
rº   rG   r·   r±   r³   r²   rµ   r´   r¶   r¸   r¹   )Údtyper…   rÉ   Ú
issubclassÚ_ntrG   ÚintegerÚtimedelta64ÚfloatingÚ
longdoubleÚcomplexfloatingÚclongdoublerŒ   r�   Ú
datetime64Úobject_r¹   ÚnamesÚStructuredVoidFormatÚ	from_data)rš   rb   Údtype_ÚdtypeobjrÆ   s        r0   Ú_get_format_functionrÛ     sÈ  € ð �Z‰Z€FØ�{‰{€HÜ  Ñ1¨Ñ1€JØÑØ˜*Ò%Ó'Ð'Ü	�HœcŸh™h×	'Ñ	'Ø˜&Ò!Ó#Ð#Ü	�HœcŸk™k×	*Ñ	*Ü�h¤§¡×0Ñ0Ø˜kÒ*Ó,Ð,à˜eÒ$Ó&Ð&Ü	�HœcŸl™l×	+Ñ	+Ü�h¤§¡×/Ñ/Ø˜kÒ*Ó,Ð,à˜gÒ&Ó(Ð(Ü	�Hœc×1Ñ1×	2Ñ	2Ü�h¤§¡×0Ñ0ØÐ0Ò1Ó3Ð3à˜nÒ-Ó/Ð/Ü	�HœsŸx™x¬¯©Ð4×	5Ñ	5Ø˜*Ò%Ó'Ð'Ü	�HœcŸn™n×	-Ñ	-Ø˜*Ò%Ó'Ð'Ü	�HœcŸk™k×	*Ñ	*Ø˜(Ò#Ó%Ð%Ü	�HœcŸh™h×	'Ñ	'Ø�<‰<Ñ#Ü'×1Ò1°$ÑB¸'ÑBÐBà˜fÒ%Ó'Ð'à˜*Ò%Ó'Ð'rj   c                 ó   ^ • U 4S jnU$ )z÷
Like the python 3.2 reprlib.recursive_repr, but forwards *args and **kwargs

Decorates a function such that if it calls itself with the same first
argument, it returns `fillvalue` instead of recursing.

Largely copied from reprlib.recursive_repr
c                 ób   >^ ^• [        5       m[        R                  " T 5      U UU4S j5       nU$ )Nc                 óÈ   >• [        U 5      [        5       4nUT;   a  T$ TR                  U5         T" U /UQ70 UD6TR                  U5        $ ! TR                  U5        f = fr‹   )Úidr   ÚaddÚdiscard)Úselfrx   ry   rÈ   ÚfÚ	fillvalueÚrepr_runnings       €€€r0   ÚwrapperÚ>_recursive_guard.<locals>.decorating_function.<locals>.wrapperD  sc   ø€ ä�T“(œI›KÐ'ˆCØ�lÓ"Ø Ð Ø×Ñ˜SÔ!ð*Ù˜Ð/ Ò/¨Ñ/à×$Ñ$ SÕ)ø�×$Ñ$ SÕ)ús   ±A ÁA!)rn   Ú	functoolsÚwraps)rã   ræ   rå   rä   s   ` @€r0   Údecorating_functionÚ-_recursive_guard.<locals>.decorating_functionA  s,   ú€ Ü“uˆä	�Š˜Ó	ö	*ó 
ð	*ð ˆrj   r-   )rä   rê   s   ` r0   Ú_recursive_guardrì   7  s   ø€ õð  Ðrj   Ú c                 óú   • [        U 5      nU R                  S:X  a  Un U R                  US   :”  a  Sn[        XAS   5      nOSn[	        U40 UD6nSnUS[        U5      -  -  n[        XUS   XrUS   XQS   5      nU$ )	Nr-   rW   ú...rX   rí   r5   rY   r6   )r   r€   Úsizer�   rÛ   r~   Ú_formatArray)	rƒ   rb   Ú	separatorÚprefixrš   Úsummary_insertÚformat_functionÚnext_line_prefixÚlsts	            r0   Ú_array2stringrø   U  s    € ô
 �1‹:€DØ‡w�w�"ƒ}Øˆà‡v�v�˜Ñ$Ó$ØˆÜ  ¨{Ñ';Ó<‰àˆô +¨4Ñ;°7Ñ;€Oð Ðà˜œc &›kÑ)Ñ)Ðä
�q¨7°;Ñ+?Ø'°G¸KÑ4HØ%¨xÑ'8ó:€Cð €Jrj   )r]   rW   rX   r\   r^   Úsuffixr6   c                ó   • U 4$ r‹   r-   )rƒ   Úmax_line_widthrC   Úsuppress_smallrò   ró   r]   rW   rX   r\   r^   rù   r6   s                r0   Ú_array2string_dispatcherrý   r  s   € ð ˆ4€Krj   )Úmodulec                ó–  • [        X'UXSSX–X¬5      n[        R                  " 5       R                  5       nUR	                  U5        US   S::  a@  U R
                  S:X  a0  U R                  R                  c  [        U R                  5       5      $ US   S:”  a  US==   [        U5      -  ss'   U R                  S:X  a  g[        XXE5      $ )aË  
Return a string representation of an array.

Parameters
----------
a : ndarray
    Input array.
max_line_width : int, optional
    Inserts newlines if text is longer than `max_line_width`.
    Defaults to ``numpy.get_printoptions()['linewidth']``.
precision : int or None, optional
    Floating point precision.
    Defaults to ``numpy.get_printoptions()['precision']``.
suppress_small : bool, optional
    Represent numbers "very close" to zero as zero; default is False.
    Very close is defined by precision: if the precision is 8, e.g.,
    numbers smaller (in absolute value) than 5e-9 are represented as
    zero.
    Defaults to ``numpy.get_printoptions()['suppress']``.
separator : str, optional
    Inserted between elements.
prefix : str, optional
suffix : str, optional
    The length of the prefix and suffix strings are used to respectively
    align and wrap the output. An array is typically printed as::

      prefix + array2string(a) + suffix

    The output is left-padded by the length of the prefix string, and
    wrapping is forced at the column ``max_line_width - len(suffix)``.
    It should be noted that the content of prefix and suffix strings are
    not included in the output.
formatter : dict of callables, optional
    If not None, the keys should indicate the type(s) that the respective
    formatting function applies to.  Callables should return a string.
    Types that are not specified (by their corresponding keys) are handled
    by the default formatters.  Individual types for which a formatter
    can be set are:

    - 'bool'
    - 'int'
    - 'timedelta' : a `numpy.timedelta64`
    - 'datetime' : a `numpy.datetime64`
    - 'float'
    - 'longfloat' : 128-bit floats
    - 'complexfloat'
    - 'longcomplexfloat' : composed of two 128-bit floats
    - 'void' : type `numpy.void`
    - 'numpystr' : types `numpy.bytes_` and `numpy.str_`

    Other keys that can be used to set a group of types at once are:

    - 'all' : sets all types
    - 'int_kind' : sets 'int'
    - 'float_kind' : sets 'float' and 'longfloat'
    - 'complex_kind' : sets 'complexfloat' and 'longcomplexfloat'
    - 'str_kind' : sets 'numpystr'
threshold : int, optional
    Total number of array elements which trigger summarization
    rather than full repr.
    Defaults to ``numpy.get_printoptions()['threshold']``.
edgeitems : int, optional
    Number of array items in summary at beginning and end of
    each dimension.
    Defaults to ``numpy.get_printoptions()['edgeitems']``.
sign : string, either '-', '+', or ' ', optional
    Controls printing of the sign of floating-point types. If '+', always
    print the sign of positive values. If ' ', always prints a space
    (whitespace character) in the sign position of positive values.  If
    '-', omit the sign character of positive values.
    Defaults to ``numpy.get_printoptions()['sign']``.

    .. versionchanged:: 2.0
         The sign parameter can now be an integer type, previously
         types were floating-point types.

floatmode : str, optional
    Controls the interpretation of the `precision` option for
    floating-point types.
    Defaults to ``numpy.get_printoptions()['floatmode']``.
    Can take the following values:

    - 'fixed': Always print exactly `precision` fractional digits,
      even if this would print more or fewer digits than
      necessary to specify the value uniquely.
    - 'unique': Print the minimum number of fractional digits necessary
      to represent each value uniquely. Different elements may
      have a different number of digits.  The value of the
      `precision` option is ignored.
    - 'maxprec': Print at most `precision` fractional digits, but if
      an element can be uniquely represented with fewer digits
      only print it with that many.
    - 'maxprec_equal': Print at most `precision` fractional digits,
      but if every element in the array can be uniquely
      represented with an equal number of fewer digits, use that
      many digits for all elements.
legacy : string or `False`, optional
    If set to the string ``'1.13'`` enables 1.13 legacy printing mode. This
    approximates numpy 1.13 print output by including a space in the sign
    position of floats and different behavior for 0d arrays. If set to
    `False`, disables legacy mode. Unrecognized strings will be ignored
    with a warning for forward compatibility.

Returns
-------
array_str : str
    String representation of the array.

Raises
------
TypeError
    if a callable in `formatter` does not return a string.

See Also
--------
array_str, array_repr, set_printoptions, get_printoptions

Notes
-----
If a formatter is specified for a certain type, the `precision` keyword is
ignored for that type.

This is a very flexible function; `array_repr` and `array_str` are using
`array2string` internally so keywords with the same name should work
identically in all three functions.

Examples
--------
>>> import numpy as np
>>> x = np.array([1e-16,1,2,3])
>>> np.array2string(x, precision=2, separator=',',
...                       suppress_small=True)
'[0.,1.,2.,3.]'

>>> x  = np.arange(3.)
>>> np.array2string(x, formatter={'float_kind':lambda x: "%.2f" % x})
'[0.00 1.00 2.00]'

>>> x  = np.arange(3)
>>> np.array2string(x, formatter={'int':lambda x: hex(x)})
'[0x0 0x1 0x2]'

Nr6   r:   r-   rY   r   z[])re   r   rl   rr   rm   r€   rË   rÖ   rŽ   r�   r~   rð   rø   )rƒ   rû   rC   rü   rò   ró   r]   rW   rX   r\   r^   rù   r6   Ú	overridesrb   s                  r0   r   r   {  s¸   € ôl # 9¸Ø#1À4ÈØ#'°IóG€Iô × Ò Ó"×'Ñ'Ó)€GØ‡N�N�9ÔàˆxÑ˜CÓØ�7‰7�b‹=˜QŸW™WŸ]™]Ñ2Ü˜Ÿ™›“>Ð!àˆxÑ˜3ÓØ�Ó¤ F£Ñ+Óð 	‡v�v�ƒ{Øä˜ YÓ7Ð7rj   c                 óÀ   • [        U5      [        U5      -   U:„  nUS:”  a  [        U5      [        U5      ::  a  SnU(       a  XR                  5       S-   -  n UnX-  nX4$ )Nr:   FÚ
)r~   Úrstrip)ÚsÚlineÚwordÚ
line_widthrö   r6   Ú
needs_wraps          r0   Ú_extendLiner	  %  s`   € Ü�T“œS ›YÑ&¨Ñ3€JØ�ƒ|äˆt‹9œÐ,Ó-Ó-ØˆJæØ	�[‰[‹]˜TÑ!Ñ!ˆØˆØ�L€DØˆ7€Nrj   c                 óÆ  • UR                  5       n[        U5      S:X  d  US::  a  [        XX#XE5      $ [        S U 5       5      n[        U5      U-   U:”  a7  [        U5      [        U5      :”  a  XR	                  5       S-   -  n XFS   -   nUnO[        U5      S-  nXS   -  nUSS  H  nXR	                  5       S-   -  n X‚-   nM     U[        US   5      -
  n	XS-  -  nX4$ )	zK
Extends line with nicely formatted (possibly multi-line) string ``word``.
r   r:   c              3   ó8   #   • U  H  n[        U5      v •  M     g 7fr‹   ©r~   )r.   r  s     r0   r1   Ú%_extendLine_pretty.<locals>.<genexpr>;  s   é € Ð6²¨œ#˜dŸ)˜)²ùó   ‚r  r   r5   Néÿÿÿÿ)Ú
splitlinesr~   r	  Úmaxr  )
r  r  r  r  rö   r6   ÚwordsÚmax_word_lengthÚindentÚsuffix_lengths
             r0   Ú_extendLine_prettyr  3  só   € ð �O‰OÓ€EÜ
ˆ5ƒz�Qƒ˜& C›-Ü˜1 DÐ6FÓOÐOäÑ6±Ó6Ó6€OÜˆD‹	�OÑ# jÓ0Ü�‹IœÐ,Ó-Ó-Ø	�[‰[‹]˜TÑ!Ñ!ˆØ¨¡(Ñ*ˆØ!‰ä�T“˜S‘ˆØ�a‘Ñˆà�a�c“
ˆØ	�[‰[‹]˜TÑ!Ñ!ˆØ‰}Šñ ð $¤c¨%°©)£nÑ4€MØ˜CÑÑ€Dàˆ7€Nrj   c                 óL   ^ ^^^^^^• U UUUUUU4S jm T" SUUS9Sm$ ! Smf = f)z[formatArray is designed for two modes of operation:

1. Full output

2. Summarized output

c           	      ó”  >• [        U 5      nTR                  U-
  nUS:X  a  T" TU    5      $ US-   nTS::  a  UnOU[        S5      -
  nTR                  U   nT=(       a    ST-  U:  nU(       a  Tn	Tn
OSn	Un
SnUS:X  Ga  TS::  a  U[        TR                  5       5      -
  nO/U[	        [        TR                  5       5      [        S5      5      -
  nUn[        U	5       H$  nT" X4-   XV5      n[        X½XüUT5      u  p½UT-  nM&     U(       a!  [        X½TXÁT5      u  p½TS::  a  US-  nOUT-  n[        U
SS	5       H%  nT" X* 4-   XV5      n[        X½XüUT5      u  p½UT-  nM'     TS::  a  UnT" U S
-   XV5      n[        X½XüUT5      u  p½X½-  nO¤SnTR                  5       SUS-
  -  -   n[        U	5       H  nT" X4-   XV5      nX±U-   U-   -  nM     U(       a  TS::  a  X±T-   S-   -  nO
X±T-   U-   -  n[        U
SS	5       H  nT" X* 4-   UU5      nX±U-   U-   -  nM     T" U S
-   XV5      nX±U-   -  nSU[        U5      S -   S-   nU$ )zœ
By using this local function, we don't need to recurse with all the
arguments. Since this function is not created recursively, the cost is
not significant
r   r5   r:   Ú]r|   rí   r   r*   r  )r  r  z, 
Ú[N)r~   r   r€   r  r  Úranger  r	  )rV   Úhanging_indentÚ
curr_widthr}   Ú	axes_leftÚnext_hanging_indentÚ
next_widthÚa_lenÚshow_summaryÚleading_itemsÚtrailing_itemsr  Ú
elem_widthr  Úir  Úline_sepÚnestedrƒ   Ú
edge_itemsrõ   r6   Úrecurserrò   rô   s                     €€€€€€€r0   r*  Ú_formatArray.<locals>.recurserW  só  ø€ ô �5‹zˆØ—F‘F˜T‘Mˆ	à˜‹>Ù" 1 U¡8Ó,Ð,ð -¨sÑ2ÐØ�S‹=Ø#‰Jà#¤c¨#£hÑ.ˆJà—‘˜‘ˆØ%×@¨!¨j©.¸5Ñ*@ˆÞØ&ˆMØ'‰NàˆMØ"ˆNð ˆð ˜Œ>à˜‹}Ø'¬#¨i×.>Ñ.>Ó.@Ó*AÑA‘
à'¬#Ü˜	×(Ñ(Ó*Ó+¬S°«Xó+ñ �
ð "ˆDÜ˜=Ö)�Ù ¨¡Ð.AÓN�Ü,Ø˜T¨~¸vóG‘�à˜	Ñ!’ñ	 *ö Ü%Ø˜^¨ZÈó‘�ð ˜S“=Ø˜D‘L‘Dà˜IÑ%�Dä˜>¨1¨bÖ1�Ù ¨¨¡Ð/BÓO�Ü,Ø˜T¨~¸vóG‘�à˜	Ñ!’ñ	 2ð ˜‹}à'�
Ù˜E E™MÐ+>ÓKˆDÜ(Ø˜¨>¸6óC‰GˆAð ‰I‰Að ˆAØ ×'Ñ'Ó)¨D°IÀ±MÑ,BÑBˆHä˜=Ö)�Ù!Ø˜D‘LÐ"5ó�ð  fÑ,¨xÑ7Ñ7’ñ	 *ö Ø˜S“=ð ¨.Ñ8¸6ÑAÑA‘Aà¨.Ñ8¸8ÑCÑC�Aä˜>¨1¨bÖ1�Ù! %¨2¨%¡-Ð1DØ",ó.�à fÑ,¨xÑ7Ñ7’ñ 2ñ
 ˜e e™mÐ-@ÓMˆFØ &Ñ(Ñ(ˆAð �!”C˜Ó'Ð(Ð)Ñ)¨CÑ/ˆØˆrj   r-   )rV   r  r  Nr-   )	rƒ   rõ   r  rö   rò   r)  rô   r6   r*  s	   ``  ````@r0   rñ   rñ   N  s2   þ€ ÷fó fðP	á˜bØ'7Ø#-ñ/ð ‰ø�4‰ús   • Ÿ#c                 ó6   • U c  gU S:  a  [        U S35      eU $ )Nr  r   z must be >= 0)rH   )r‘   Únames     r0   Ú_none_or_positive_argr.  Ê  s(   € Ø�yØØˆ1ƒuÜ˜D˜6 Ð/Ó0Ð0Ø€Hrj   c                   ó6   • \ rS rSrSrS	SS.S jjrS rS rSrg)
r£   iÑ  z&Formatter for subtypes of np.floating Nr¡   c                ó`  • [        U[        5      (       a  U(       a  SOSnX`l        U R                  S::  a  UR                  S:w  a  US:X  a  SnX0l        US:X  a  S U l        OX l        [        U R
                  S5      U l        X@l        XPl        SU l	        SU l
        U R                  U5        g )	Nr4   r3   r:   r-   r5   r'   rC   F)rO   rG   Ú_legacyr€   r^   rC   r.  rü   r\   Ú
exp_formatÚlarge_exponentÚ
fillFormat)râ   rš   rC   r^   rü   r\   r6   s          r0   Ú__init__ÚFloatingFormat.__init__Ó  s“   € ô �dœD×!Ñ!Þ‘3 CˆDàŒØ�<‰<˜3Óà�z‰z˜RÓ D¨C£KØ�à"ŒØ˜Ó Ø!ˆD�Nà&ŒNä.¨t¯~©~¸{ÓKˆŒà,ÔØŒ	ØˆŒØ#ˆÔØ�‰˜Õrj   c                 óD  ^ ^^• U[        U5         n[        X"S:g     5      n[        U5      S:w  a³  [        R                  " U5      n[        R
                  " U5      nT R                  S::  a  SnO7S[        S[        R                  " UR                  5      R                  5      -  n[        SS9   XF:¼  d  T R                  (       d  US:  d  XE-  S	:”  a  S
T l        S S S 5        [        U5      S:X  a,  ST l        ST l        ST l        ST l        S
T l        S T l        GOëT R                  (       aü  Su  mmT R&                  S:X  d  T R                  S::  a  Su  mmU UU4S jU 5       n[)        S U 5       6 u  p‰n
[)        S U 5       6 u  p¼[	        S U
 5       5      S-
  T l        ST l        [	        S U 5       5      T l	        T R                  T l        TT l        T R                  S::  a  ST l        O[	        S U 5       5      T l        T R                   S-   T R                  -   T l        OÞSu  mmT R&                  S:X  a  Su  mmU UU4S jU 5       n[)        S U 5       6 u  p¼T R                  S::  a  S[	        S U 5       5      -   T l        O[	        S U 5       5      T l        [	        S U 5       5      T l        ST l        TT l        T R&                  S ;   a   T R                  =T l	        T l        ST l        OST l        ST l        T R                  S:”  aI  T R*                  S!:X  a9  [-        [        R.                  " U5      5      (       d  T =R                  S-  sl        UR0                  UR0                  :w  a’  T R*                  S":g  =(       d    [-        U[3        U5         S:  5      nT R                  S-   n[4        R6                  " 5       n[	        T R                  [        US#   5      U-
  [        US$   5      U-   U-
  5      T l        g g ! , (       d  f       GN;= f)%Nr   rB   g    „×—Ag      $@é   Úignore)Úoverg-Cëâ6?g     @�@TÚ.r  )r;  Tr&   r:   )r`   Fc           	   3   ól   >#   • U  H)  n[        UTR                  TTTR                  S :H  S9v •  M+     g7f)r4   )rC   r'   Útrimr\   N)r   rC   r\   ©r.   r‘   râ   r=  r'   s     €€€r0   r1   Ú,FloatingFormat.fillFormat.<locals>.<genexpr>  s6   øé € ð *â(˜ô ' q°D·N±NØ&,°4¸d¿i¹iÈ3Ñ>NöPâ(ùs   ƒ14c              3   óB   #   • U  H  oR                  S 5      v •  M     g7f)rd   N)Ú	partition©r.   r  s     r0   r1   r?    s   é € Ð*JÂTÀ¯;©;°s×+;Ð+;ÂTùó   ‚c              3   óB   #   • U  H  oR                  S 5      v •  M     g7f©r;  N©ÚsplitrB  s     r0   r1   r?    s   é € Ð'Hºi¸¯©°¯¨ºiùrC  c              3   ó8   #   • U  H  n[        U5      v •  M     g 7fr‹   r  rB  s     r0   r1   r?    s   é € Ð9²¨1¤ A§ ²ùr  r   r`   c              3   ó8   #   • U  H  n[        U5      v •  M     g 7fr‹   r  rB  s     r0   r1   r?    ó   é € Ð ;²¨A¤ Q§ ²ùr  r7   c              3   ó8   #   • U  H  n[        U5      v •  M     g 7fr‹   r  rB  s     r0   r1   r?    ó   é € Ð#=²H¨q¤C¨§F F²Hùr  r|   c           
   3   ón   >#   • U  H*  n[        UTR                  S TTTR                  S:H  S9v •  M,     g7f)Tr4   )rC   Ú
fractionalr'   r=  r\   N)r   rC   r\   r>  s     €€€r0   r1   r?  $  s=   øé € ð *ò )˜ô	 ' q°D·N±NØ26Ø.4¸4Ø,0¯I©I¸Ñ,<ö>ò )ùs   ƒ25c              3   óB   #   • U  H  oR                  S 5      v •  M     g7frE  rF  rB  s     r0   r1   r?  )  s   é € Ð'Cºd¸¯©°¯¨ºdùrC  c              3   óV   #   • U  H  n[        UR                  S 5      5      v •  M!     g7f)z-+N)r~   ÚlstriprB  s     r0   r1   r?  +  s    é € Ð'NÂXÀ¬¨A¯H©H°T«N×(;Ð(;ÂXùs   ‚')c              3   ó8   #   • U  H  n[        U5      v •  M     g 7fr‹   r  rB  s     r0   r1   r?  -  rL  r  c              3   ó8   #   • U  H  n[        U5      v •  M     g 7fr‹   r  rB  s     r0   r1   r?  .  rJ  r  )r&   r)   r5   r3   rZ   r[   )r!   r    r~   rS   r  Úminr1  ÚfinforË   rC   r   rü   r2  Úpad_leftÚ	pad_rightr=  Úexp_sizer'   Ú
min_digitsr^   Úzipr\   r   Úsignbitrð   r"   r   rl   )râ   rš   Úfinite_valsÚabs_non_zeroÚmax_valÚmin_valÚexp_cutoff_maxÚstrsÚ	frac_strsÚ_Úexp_strsÚint_partÚ	frac_partÚneginfÚoffsetÚcurrent_optionsr=  r'   s   `               @@r0   r4  ÚFloatingFormat.fillFormatí  s…  ú€ àœ8 D›>Ñ*ˆô   ¸1Ñ,<Ñ =Ó>ˆÜˆ|Ó Ó!Ü—f’f˜\Ó*ˆGÜ—f’f˜\Ó*ˆGØ�|‰|˜sÓ"Ø!%‘ð "%¤c¨!¬R¯XªX°d·j±jÓ-A×-KÑ-KÓ&LÑ!L�Ü˜xÓ(ØÓ,°T×5H×5HØ  6Ó)¨WÑ->ÀÓ-FØ&*�D”O÷ )ô ˆ{Ó˜qÓ ØˆDŒMØˆDŒNØˆDŒIØˆDŒMØˆDŒKØ"ˆDŽOØ�_�_Ø$‰LˆD�&Ø�~‰~ Ó(¨D¯L©L¸CÓ,?Ø)‘��fö*á(ó*ˆDô &)Ñ*JÁTÓ*JÐ%KÑ"ˆI˜(Ü"%Ñ'H¹iÓ'HÐ"IÑˆHÜÑ9±Ó9Ó9¸AÑ=ˆDŒMàˆDŒIÜ Ñ ;±Ó ;Ó;ˆDŒNØ"Ÿn™nˆDŒOØ ˆDŒKð �|‰|˜sÓ"Ø !�•ô !$Ñ#=±HÓ#=Ó =�”à!Ÿ]™]¨QÑ.°·±Ñ?ˆD�Nà$‰LˆD�&Ø�~‰~ Ó(Ø)‘��fö*ñ )ó	*ˆDô
 #&Ñ'C¹dÓ'CÐ"DÑˆHØ�|‰|˜sÓ"Ø !¤CÑ'NÁXÓ'NÓ$NÑ N�•ä #Ñ#=±HÓ#=Ó =�”Ü Ñ ;±Ó ;Ó;ˆDŒNØˆDŒMØ ˆDŒKà�~‰~Ð!;Ó;Ø37·>±>ÐA�” ¤Ø�•	à�”	Ø"#�”à�<‰<˜#Óà�y‰y˜CÓ¬¬B¯JªJ°{Ó,C×(DÑ(DØ—’ Ñ"•ð �9‰9˜×(Ñ(Ó(Ø—Y‘Y #Ñ%×C¬¨T´%¸³+Ñ->ÀÑ-BÓ)CˆFØ—^‘^ aÑ'ˆFÜ,×0Ò0Ó2ˆOÜØ—‘œs ?°8Ñ#<Ó=ÀÑFÜ�O HÑ-Ó.°Ñ7¸&Ñ@óˆD�Mð	 )÷I )Ö(ús   Â0,PÐ
Pc                 óB  • [         R                  " U5      (       d°  [        SS9   [        R                  " 5       n[         R
                  " U5      (       a  U R                  S:X  a  SOSnX2S   -   nO#US:  a  SOU R                  S:X  a  SOSnX2S   -   nS	U R                  U R                  -   S
-   [        U5      -
  -  U-   sS S S 5        $ U R                  (       aY  [        UU R                  U R                  U R                  U R                  U R                  S:H  U R                  U R                   S9$ [#        UU R                  U R                  U R                  SU R                  U R                  S:H  U R                  U R                  S9	$ ! , (       d  f       NÒ= f)Nr9  )Úinvalidr4   rí   rZ   r   r3   r[   r5   r   )rC   rY  r'   r=  r\   rV  Ú
exp_digitsT)rC   rY  r'   rN  r=  r\   rV  rW  )rS   r!   r   r   rl   rT   r\   rV  rW  r~   r2  r   rC   rY  r'   r=  rX  r   )râ   r‘   ri  r\   Úrets        r0   Ú__call__ÚFloatingFormat.__call__H  sS  € Ü�{Š{˜1�~‰~Ü (Ó+Ü"0×"4Ò"4Ó"6�Ü—8’8˜A—;‘;Ø"&§)¡)¨sÓ"2™3¸�DØ°Ñ!:Ñ:‘Cà"# a£%™3°D·I±IÀÓ4D©SÈ"�DØ°Ñ!:Ñ:�CØØ—M‘M D§N¡NÑ2°QÑ6¼¸S»ÑAñàñ÷ ,Ñ+ð �?�?Ü% aØ04·±Ø15·±Ø-1¯[©[Ø+/¯9©9Ø+/¯9©9¸Ñ+;Ø/3¯}©}Ø15·±ñ@ð @ô & aØ04·±Ø15·±Ø-1¯[©[Ø15Ø+/¯9©9Ø+/¯9©9¸Ñ+;Ø/3¯}©}Ø04·±ñ@ð @÷- ,Õ+ús   ¥BFÆ
F)r1  r2  rX  r^   r3  rY  rV  rW  rC   r\   rü   r=  r'   ©F)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r5  r4  ro  Ú__static_attributes__r-   rj   r0   r£   r£   Ñ  s   † Ù1ðØöò4Yõv @rj   r£   c                 ó´   • [        US5      n[        US5      n[        US5      n[        US5      nUS:”  a  US:”  a  Xq:”  a  [        S5      e[        XUX4UXgS9$ )a
  
Format a floating-point scalar as a decimal string in scientific notation.

Provides control over rounding, trimming and padding. Uses and assumes
IEEE unbiased rounding. Uses the "Dragon4" algorithm.

Parameters
----------
x : python float or numpy floating scalar
    Value to format.
precision : non-negative integer or None, optional
    Maximum number of digits to print. May be None if `unique` is
    `True`, but must be an integer if unique is `False`.
unique : boolean, optional
    If `True`, use a digit-generation strategy which gives the shortest
    representation which uniquely identifies the floating-point number from
    other values of the same type, by judicious rounding. If `precision`
    is given fewer digits than necessary can be printed. If `min_digits`
    is given more can be printed, in which cases the last digit is rounded
    with unbiased rounding.
    If `False`, digits are generated as if printing an infinite-precision
    value and stopping after `precision` digits, rounding the remaining
    value with unbiased rounding
trim : one of 'k', '.', '0', '-', optional
    Controls post-processing trimming of trailing digits, as follows:

    * 'k' : keep trailing zeros, keep decimal point (no trimming)
    * '.' : trim all trailing zeros, leave decimal point
    * '0' : trim all but the zero before the decimal point. Insert the
      zero if it is missing.
    * '-' : trim trailing zeros and any trailing decimal point
sign : boolean, optional
    Whether to show the sign for positive values.
pad_left : non-negative integer, optional
    Pad the left side of the string with whitespace until at least that
    many characters are to the left of the decimal point.
exp_digits : non-negative integer, optional
    Pad the exponent with zeros until it contains at least this
    many digits. If omitted, the exponent will be at least 2 digits.
min_digits : non-negative integer or None, optional
    Minimum number of digits to print. This only has an effect for
    `unique=True`. In that case more digits than necessary to uniquely
    identify the value may be printed and rounded unbiased.

    .. versionadded:: 1.21.0

Returns
-------
rep : string
    The string representation of the floating point value

See Also
--------
format_float_positional

Examples
--------
>>> import numpy as np
>>> np.format_float_scientific(np.float32(np.pi))
'3.1415927e+00'
>>> s = np.float32(1.23e24)
>>> np.format_float_scientific(s, unique=False, precision=15)
'1.230000071797338e+24'
>>> np.format_float_scientific(s, exp_digits=4)
'1.23e+0024'
rC   rV  rm  rY  r   ú2min_digits must be less than or equal to precision)rC   r'   r=  r\   rV  rm  rY  )r.  rH   r   )r‘   rC   r'   r=  r\   rV  rm  rY  s           r0   r	   r	   k  sn   € ôL & i°Ó=€IÜ$ X¨zÓ:€HÜ& z°<Ó@€JÜ& z°<Ó@€JØ�Aƒ~˜) a›-¨JÓ,BÜÐMÓNÐNÜ˜a¸VØ#'¸XØ)3ñLð Lrj   c	                 óä   • [        US5      n[        US5      n[        US5      n[        US5      nU(       d  US:X  a  [        S5      eUS:”  a  US:”  a  X�:”  a  [        S5      e[        XUX4XVXxS9	$ )	a�  
Format a floating-point scalar as a decimal string in positional notation.

Provides control over rounding, trimming and padding. Uses and assumes
IEEE unbiased rounding. Uses the "Dragon4" algorithm.

Parameters
----------
x : python float or numpy floating scalar
    Value to format.
precision : non-negative integer or None, optional
    Maximum number of digits to print. May be None if `unique` is
    `True`, but must be an integer if unique is `False`.
unique : boolean, optional
    If `True`, use a digit-generation strategy which gives the shortest
    representation which uniquely identifies the floating-point number from
    other values of the same type, by judicious rounding. If `precision`
    is given fewer digits than necessary can be printed, or if `min_digits`
    is given more can be printed, in which cases the last digit is rounded
    with unbiased rounding.
    If `False`, digits are generated as if printing an infinite-precision
    value and stopping after `precision` digits, rounding the remaining
    value with unbiased rounding
fractional : boolean, optional
    If `True`, the cutoffs of `precision` and `min_digits` refer to the
    total number of digits after the decimal point, including leading
    zeros.
    If `False`, `precision` and `min_digits` refer to the total number of
    significant digits, before or after the decimal point, ignoring leading
    zeros.
trim : one of 'k', '.', '0', '-', optional
    Controls post-processing trimming of trailing digits, as follows:

    * 'k' : keep trailing zeros, keep decimal point (no trimming)
    * '.' : trim all trailing zeros, leave decimal point
    * '0' : trim all but the zero before the decimal point. Insert the
      zero if it is missing.
    * '-' : trim trailing zeros and any trailing decimal point
sign : boolean, optional
    Whether to show the sign for positive values.
pad_left : non-negative integer, optional
    Pad the left side of the string with whitespace until at least that
    many characters are to the left of the decimal point.
pad_right : non-negative integer, optional
    Pad the right side of the string with whitespace until at least that
    many characters are to the right of the decimal point.
min_digits : non-negative integer or None, optional
    Minimum number of digits to print. Only has an effect if `unique=True`
    in which case additional digits past those necessary to uniquely
    identify the value may be printed, rounding the last additional digit.

    .. versionadded:: 1.21.0

Returns
-------
rep : string
    The string representation of the floating point value

See Also
--------
format_float_scientific

Examples
--------
>>> import numpy as np
>>> np.format_float_positional(np.float32(np.pi))
'3.1415927'
>>> np.format_float_positional(np.float16(np.pi))
'3.14'
>>> np.format_float_positional(np.float16(0.3))
'0.3'
>>> np.format_float_positional(np.float16(0.3), unique=False, precision=10)
'0.3000488281'
rC   rV  rW  rY  r   z4precision must be greater than 0 if fractional=Falsery  )rC   r'   rN  r=  r\   rV  rW  rY  )r.  rH   r   )	r‘   rC   r'   rN  r=  r\   rV  rW  rY  s	            r0   r   r   ¼  sŠ   € ô\ & i°Ó=€IÜ$ X¨zÓ:€HÜ% i°Ó=€IÜ& z°<Ó@€JÞ˜) q›.Üð ,ó -ð 	-à�Aƒ~˜) a›-¨JÓ,BÜÐMÓNÐNÜ˜a¸VØ)3Ø#'Ø(1ñJð Jrj   c                   ó$   • \ rS rSrSS jrS rSrg)rž   i  c                 ó>  • UR                   S:”  a~  [        R                  " U5      n[        R                  " U5      n[	        [        U5      5      nUS:X  a  US:  a  SnUS:¼  a  US;   a  US-  n[        U[	        [        U5      5      5      nOSnSU U S3U l        g )Nr   r5   r3   z+ r   z{:zd})rð   rS   r  rT  r~   r”   r†   )râ   rš   r\   Údata_maxÚdata_minÚdata_max_str_lenÚmax_str_lens          r0   r5  ÚIntegerFormat.__init__  s”   € Ø�9‰9�q‹=Ü—v’v˜d“|ˆHÜ—v’v˜d“|ˆHÜ"¤3 x£=Ó1ÐØ�s‹{˜x¨!›|Ø�Ø˜1‹} ¨£Ø  AÑ%Ð ÜÐ.Ü!¤# h£-Ó0ó2‰Kð ˆKØ˜D˜6 + ¨cÐ2ˆ�rj   c                 ó8   • U R                   R                  U5      $ r‹   ©r†   ©râ   r‘   s     r0   ro  ÚIntegerFormat.__call__(  s   € Ø�{‰{×!Ñ! !Ó$Ð$rj   rƒ  N)r3   ©rr  rs  rt  ru  r5  ro  rw  r-   rj   r0   rž   rž     s   † ô3õ%rj   rž   c                   ó    • \ rS rSrS rS rSrg)r˜   i+  c                 óB   • UR                   S:w  a  SU l        g SU l        g )Nr-   z TrueÚTrue)r€   Útruestr)râ   rš   ry   s      r0   r5  ÚBoolFormat.__init__,  s   € ð #'§*¡*°Ó"2�wˆ�¸ˆ�rj   c                 ó,   • U(       a  U R                   $ S$ )NÚFalse©rŠ  r„  s     r0   ro  ÚBoolFormat.__call__1  s   € Þ ˆt�|‰|Ð- gÐ-rj   rŽ  Nr†  r-   rj   r0   r˜   r˜   +  s   † ò?õ
.rj   r˜   c                   ó2   • \ rS rSrSr SSS.S jjrS rSrg)	r¨   i5  z-Formatter for subtypes of np.complexfloating Nr¡   c          	      óÌ   • [        U[        5      (       a  U(       a  SOSnU=pxUS::  a  SnSn[        UR                  X'UXVS9U l        [        UR
                  X(USUS9U l        g )Nr4   r3   r:   r)   r(   )r\   r6   )rO   rG   r£   ÚrealÚreal_formatÚimagÚimag_format)	râ   r‘   rC   r^   rü   r\   r6   Úfloatmode_realÚfloatmode_imags	            r0   r5  ÚComplexFloatingFormat.__init__7  sm   € ô �dœD×!Ñ!Þ‘3 CˆDà*3Ð3ˆØ�S‹=Ø,ˆNØ&ˆNä)Ø�F‰F�I¨~Øñ
ˆÔô *Ø�F‰F�I¨~Ø˜Vñ
ˆÕrj   c                 óÂ   • U R                  UR                  5      nU R                  UR                  5      n[	        UR                  5       5      nUS U S-   X4S  -   nX#-   $ )NÚj)r“  r’  r•  r”  r~   r  )râ   r‘   Úrr&  Úsps        r0   ro  ÚComplexFloatingFormat.__call__K  sZ   € Ø×Ñ˜QŸV™VÓ$ˆØ×Ñ˜QŸV™VÓ$ˆô �—‘“‹_ˆØˆcˆrˆF�S‰L˜1˜S˜6Ñ!ˆà‰uˆrj   )r•  r“  rq  )rr  rs  rt  ru  rv  r5  ro  rw  r-   rj   r0   r¨   r¨   5  s   † Ù8àð
Ø'+ö
õ(rj   r¨   c                   ó&   • \ rS rSrS rS rS rSrg)Ú_TimelikeFormatiV  c           
      óš  • U[        U5      )    n[        U5      S:”  ae  [        [        U R                  [        R                  " U5      5      5      [        U R                  [        R
                  " U5      5      5      5      nOSn[        U5      UR                  :  a  [        US5      nSU S3U l        SR                  U5      U l	        g )Nr   é   Ú%r  z'NaT')
r#   r~   r  Ú_format_non_natrS   rT  rð   Ú_formatÚrjustÚ_nat)râ   rš   Únon_natr€  s       r0   r5  Ú_TimelikeFormat.__init__W  s¡   € Øœ˜d›�|Ñ$ˆÜˆw‹<˜!Óäœc $×"6Ñ"6´r·v²v¸g³Ó"GÓHÜ! $×"6Ñ"6´r·v²v¸g³Ó"GÓHóJ‰Kð ˆKÜˆw‹<˜$Ÿ)™)Ó#ä˜k¨1Ó-ˆKØ˜;˜- qÐ)ˆŒØ—M‘M +Ó.ˆ�	rj   c                 ó   • [         er‹   )ÚNotImplementedErrorr„  s     r0   r£  Ú_TimelikeFormat._format_non_nate  s   € ä!Ð!rj   c                 óv   • [        U5      (       a  U R                  $ U R                  U R                  U5      -  $ r‹   )r#   r¦  r¤  r£  r„  s     r0   ro  Ú_TimelikeFormat.__call__i  s/   € Ü��8‰8Ø—9‘9Ðà—<‘< $×"6Ñ"6°qÓ"9Ñ9Ð9rj   )r¤  r¦  N)rr  rs  rt  ru  r5  r£  ro  rw  r-   rj   r0   rŸ  rŸ  V  s   † ò/ò"õ:rj   rŸ  c                   óB   ^ • \ rS rSr  SU 4S jjrU 4S jrS rSrU =r$ )r«   ip  c                 óÎ   >• Uc5  UR                   R                  S:X  a  [        UR                   5      S   nOSnUc  SnX0l        X l        X@l        XPl        [        TU ]!  U5        g )NÚMr   r  Únaive)	rË   Úkindr   ÚtimezoneÚunitÚcastingr6   Úsuperr5  )râ   r‘   r´  r³  rµ  r6   Ú	__class__s         €r0   r5  ÚDatetimeFormat.__init__q  s`   ø€ ð ‰<Ø�w‰w�|‰|˜sÓ"Ü$ Q§W¡WÓ-¨aÑ0‘à�àÑØˆHØ ŒØŒ	ØŒØŒô 	‰Ñ˜Õrj   c                 ód   >• U R                   S::  a  U R                  U5      $ [        TU ]  U5      $ )Nr:   )r6   r£  r¶  ro  )râ   r‘   r·  s     €r0   ro  ÚDatetimeFormat.__call__„  s0   ø€ Ø�;‰;˜#ÓØ×'Ñ'¨Ó*Ð*Ü‰wÑ Ó"Ð"rj   c                 ó\   • S[        UU R                  U R                  U R                  S9-  $ )Nz'%s')r´  r³  rµ  )r   r´  r³  rµ  r„  s     r0   r£  ÚDatetimeFormat._format_non_nat‰  s.   € ØÔ*¨1Ø)-¯©Ø-1¯]©]Ø,0¯L©Lñ:ñ :ð 	:rj   )rµ  r6   r³  r´  )NNÚ	same_kindF)	rr  rs  rt  ru  r5  ro  r£  rw  Ú__classcell__)r·  s   @r0   r«   r«   p  s   ø† Ø<GØ÷õ&#÷
:ð :rj   r«   c                   ó   • \ rS rSrS rSrg)r­   i�  c                 ó6   • [        UR                  S5      5      $ )NÚi8)r”   Úastyper„  s     r0   r£  ÚTimedeltaFormat._format_non_nat‘  s   € Ü�1—8‘8˜D“>Ó"Ð"rj   r-   N)rr  rs  rt  ru  r£  rw  r-   rj   r0   r­   r­   �  s   † õ#rj   r­   c                   ó&   • \ rS rSrS rS rS rSrg)ÚSubArrayFormati•  c                 ó8   • Xl         US   U l        US   U l        g )NrW   rX   )rõ   rW   r)  )râ   rõ   rb   s      r0   r5  ÚSubArrayFormat.__init__–  s    € Ø.ÔØ  Ñ-ˆŒØ! +Ñ.ˆ�rj   c                 ój   • UR                   U R                  :”  a  SOSU l        U R                  U5      $ )Nrï   rí   )rð   rW   rô   Úformat_array)râ   rƒ   s     r0   ro  ÚSubArrayFormat.__call__›  s,   € Ø'(§v¡v°·±Ó'>™eÀBˆÔØ× Ñ  Ó#Ð#rj   c                 ó  • [         R                  " U5      S:X  a  U R                  U5      $ U R                  (       aŒ  UR                  S   SU R
                  -  :”  al  US U R
                    Vs/ s H  o R                  U5      PM     snU R                  /-   XR
                  * S   Vs/ s H  o R                  U5      PM     sn-   nO U Vs/ s H  o R                  U5      PM     nnSSR                  U5      -   S-   $ s  snf s  snf s  snf )Nr   r|   r  r*   r  )rS   r   rõ   rô   r€   r)  rÉ  rI   )râ   rƒ   Úa_Ú	formatteds       r0   rÉ  ÚSubArrayFormat.format_arrayŸ  sø   € Ü�7Š7�1‹:˜‹?Ø×'Ñ'¨Ó*Ð*à×× 1§7¡7¨1¡:°°D·O±OÑ0CÓ#Cà12Ð3C°D·O±OÑ1DÓEÒ1D¨2×"Ñ" 2Ö&Ñ1DÑEØ×&Ñ&Ð'ñ(à34·o±oÐ5EÐ5FÑ3GÓHÒ3G¨R×$Ñ$ RÖ(Ñ3GÑHñIñ ñ :;Ó;º°2×*Ñ*¨2Ö.¹ˆIÐ;à�T—Y‘Y˜yÓ)Ñ)¨CÑ/Ð/ùò FùâHùò <s   Á.D Â)DÃD
)r)  rõ   rô   rW   N)rr  rs  rt  ru  r5  ro  rÉ  rw  r-   rj   r0   rÅ  rÅ  •  s   † ò/ò
$õ0rj   rÅ  c                   ó4   • \ rS rSrSrS r\S 5       rS rSr	g)r×   i¯  zà
Formatter for structured np.void objects.

This does not work on structured alias types like
np.dtype(('i4', 'i2,i2')), as alias scalars lose their field information,
and the implementation relies upon np.void.__getitem__.
c                 ó   • Xl         g r‹   ©Úformat_functions)râ   rÒ  s     r0   r5  ÚStructuredVoidFormat.__init__·  s   € Ø 0Õrj   c                 óà   • / nUR                   R                   HK  n[        X   40 UD6nUR                   U   R                  S:w  a  [	        U40 UD6nUR                  U5        MM     U " U5      $ )zŠ
This is a second way to initialize StructuredVoidFormat,
using the raw data as input. Added to avoid changing
the signature of __init__.
r-   )rË   rÖ   rÛ   r€   rÅ  Úappend)Úclsrš   rb   rÒ  Ú
field_namerõ   s         r0   rØ   ÚStructuredVoidFormat.from_dataº  sr   € ð ÐØŸ*™*×*Ô*ˆJÜ2°4Ñ3CÑOÀwÑOˆOØ�z‰z˜*Ñ%×+Ñ+¨rÓ1Ü"0°Ñ"LÀGÑ"L�Ø×#Ñ# OÖ4ñ	 +ñ
 Ð#Ó$Ð$rj   c                 óÆ   • [        XR                  5       VVs/ s H  u  p#U" U5      PM     nnn[        U5      S:X  a	  SUS    S3$ SSR                  U5       S3$ s  snnf )Nr   Ú(r   z,)r*   Ú))rZ  rÒ  r~   rI   )râ   r‘   Úfieldrõ   Ú
str_fieldss        r0   ro  ÚStructuredVoidFormat.__call__É  sv   € ô +.¨a×1FÑ1FÔ*Gô
â*GÑ&�ñ ˜EÖ"Ù*Gð 	ñ 
ô ˆz‹?˜aÓØ�z !‘}�o RÐ(Ð(à�t—y‘y Ó,Ð-¨QÐ/Ð/ùó
s   ™ArÑ  N)
rr  rs  rt  ru  rv  r5  ÚclassmethodrØ   ro  rw  r-   rj   r0   r×   r×   ¯  s%   † ñò1ð ñ%ó ð%õ0rj   r×   c                 óJ  • [         R                  " 5       R                  5       nUS   S::  a&  [        R                  " [        U 5      40 UD6" U 5      $ UR                  S5      c  0 US'   US   R                  S[        5        [        R                  " [        U 5      40 UD6" U 5      nU(       d  U$ [        U 5      nUR                  R                  SS5      S-   UR                  -   n[        R                  " [        R                  U R                  45      nU SU S	U< S
3$ )z­
Implements the repr for structured-void scalars. It is called from the
scalartypes.c.src code, and is placed here because it uses the elementwise
formatters defined above.
r6   r>   r]   rÂ   rf   rS   r;  rÚ  z, dtype=rÛ  )r   rl   rr   r×   rØ   r   Ú
setdefaultr”   r…   rs  Úreplacerr  rS   rË   r¹   )r‘   Úis_reprrb   Úval_reprrÖ  Úcls_fqnÚ
void_dtypes          r0   Ú_void_scalar_to_stringrç  Ô  sü   € ô × Ò Ó"×'Ñ'Ó)€GàˆxÑ˜CÓÜ#×-Ò-¬e°A«hÑB¸'ÒBÀ1ÓEÐEà‡{�{�;ÓÑ'Ø!ˆ�ÑØˆKÑ×#Ñ# L´#Ô6Ü#×-Ò-¬e°A«hÑB¸'ÒBÀ1ÓE€HÞØˆÜ
ˆq‹'€CØ�n‰n×$Ñ$ W¨dÓ3°cÑ9¸C¿L¹LÑH€GÜ—’œ2Ÿ7™7 A§G¡GÐ,Ó-€JØˆY�a˜�z ¨*©°qÐ9Ð9rj   c                 ó
  • [         R                  " U 5      n [        R                  " 5       S   S::  a  U R                  [         R
                  :X  a  gU R                  b  gU R                  (       d  gU R                  [        ;   $ )aè  
Determine if the given dtype is implied by the representation
of its values.

Parameters
----------
dtype : dtype
    Data type

Returns
-------
implied : bool
    True if the dtype is implied by the representation of its values.

Examples
--------
>>> import numpy as np
>>> np._core.arrayprint.dtype_is_implied(int)
True
>>> np.array([1, 2, 3], int)
array([1, 2, 3])
>>> np._core.arrayprint.dtype_is_implied(np.int8)
False
>>> np.array([1, 2, 3], np.int8)
array([1, 2, 3], dtype=int8)
r6   r:   F)	rS   rË   r   rl   r…   rG   rÖ   ÚisnativeÚ_typelessdata)rË   s    r0   Údtype_is_impliedrë  î  sc   € ô6 �HŠH�U‹O€EÜ×ÒÓ˜HÑ%¨Ó,°·±¼r¿w¹wÓ1FØð ‡{�{ÑØð �>�>Øà�:‰:œÑ&Ð&rj   c                 óà  • [        U 5      R                  [        R                  R                  :w  a  [	        U 5      $ U R
                  b  [        U 5      $ [        U R                   [        5      (       a  S[        U 5       S3$ U R                  nU R                  (       d  S[        U 5       S3$ U(       a8  US   R                  5       (       a  UR                  5       (       d  [	        U5      nU$ )zÙ
Convert a dtype to a short form which evaluates to the same dtype.

The intent is roughly that the following holds

>>> from numpy import *
>>> dt = np.int64([1, 2]).dtype
>>> assert eval(dtype_short_repr(dt)) == dt
Ú'r   )r…   Ú__repr__rS   rË   rŽ   rÖ   r”   rÌ   r   r-  ré  ÚisalphaÚisalnum)rË   Útypenames     r0   Údtype_short_reprrò    s¸   € ô ˆEƒ{×ÑœrŸx™x×0Ñ0Ó0ä�E‹{ÐØ‡{�{Ñä�5‹zÐÜ	�E—J‘J¤×	)Ñ	)à”3�u“:�,˜aÐ Ð à�z‰z€HØ�>�>ð ”3�u“:�,˜aÐ Ð æ˜ !™×,Ñ,×.Ñ.°8×3CÑ3C×3EÑ3EÜ˜“>ˆØ€Orj   c           
      ó<  • [         R                  " 5       nUS   nUb  U" U 5      $ Uc  US   n[        U 5      [        La  [        U 5      R                  nOSnUS-   nUS   S::  aE  U R
                  S:X  a5  U R                  R                  (       d  [        U R                  5       5      n	O
U" XX#SUS	S
9n	/ n
U R                  S:X  a  U R
                  S:w  d  US   S:”  a1  U R                  US   :”  a  U
R                  SU R
                   35        [        U R                  5      (       a  U R                  S:X  a'  U
R                  S[        U R                  5       35        U
(       d  X‰-   S	-   $ X‰-   S-   nSR                  U
5      S	-   n[        U5      UR!                  S5      S-   -
  nSnUS   S::  a;  [#        U R                  R                  [$        5      (       a  SS[        U5      -  -   nO&U[        U5      -   S-   U:”  a  SS[        U5      -  -   nX¾-   U-   $ )zEInternal version of array_repr() that allows overriding array2string.r_   rY   r   rÚ  r6   r:   r-   r*   rÛ  )rù   r   )r   éÒ   rW   zshape=zdtype=Ú,r  r   r5   )r   rl   r…   r   rr  r€   rË   rÖ   rŽ   r�   rð   rÕ  rë  rò  rI   r~   ÚrfindrÌ   r   )Úarrrû   rC   rü   r   ri  r_   Ú
class_nameró   r÷   ÚextrasÚarr_strÚ	extra_strÚlast_line_lenÚspacers                  r0   Ú_array_repr_implementationrþ  8  sö  € ô %×(Ò(Ó*€OØ# OÑ4€MØÑ Ù˜SÓ!Ð!àÑØ(¨Ñ5ˆäˆCƒyœÒÜ˜#“Y×'Ñ'‰
àˆ
à˜#Ñ€FØ˜Ñ! SÓ(Ø�I‰I˜‹O C§I¡I§O§OÜ�3—8‘8“:Ó‰á˜3°	Ø °ñ5ˆð
 €FØ	�‰�Q‹˜3Ÿ9™9¨Ó,Ø Ñ)¨CÓ/Ø—‘˜?¨;Ñ7Ó7Ø�‰˜˜sŸy™y˜kÐ*Ô+Ü˜CŸI™I×&Ñ&¨#¯(©(°a«-Ø�‰˜Ô/°·	±	Ó:Ð;Ð<Ô=æØ‰|˜cÑ!Ð!à‰l˜SÑ €GØ—	‘	˜&Ó! CÑ'€Iô ˜“L G§M¡M°$Ó$7¸!Ñ$;Ñ<€MØ€FØ�xÑ  CÓ'Ü�c—i‘i—n‘n¤h×/Ñ/Ø˜C¤# f£+Ñ-Ñ-ˆFøØ	œ˜Y›Ñ	'¨!Ñ	+¨nÓ	<Ø˜œc &›kÑ)Ñ)ˆàÑ˜iÑ'Ð'rj   c                 ó   • U 4$ r‹   r-   ©r÷  rû   rC   rü   s       r0   Ú_array_repr_dispatcherr  n  s	   € àˆ6€Mrj   c                 ó   • [        XX#5      $ )a”  
Return the string representation of an array.

Parameters
----------
arr : ndarray
    Input array.
max_line_width : int, optional
    Inserts newlines if text is longer than `max_line_width`.
    Defaults to ``numpy.get_printoptions()['linewidth']``.
precision : int, optional
    Floating point precision.
    Defaults to ``numpy.get_printoptions()['precision']``.
suppress_small : bool, optional
    Represent numbers "very close" to zero as zero; default is False.
    Very close is defined by precision: if the precision is 8, e.g.,
    numbers smaller (in absolute value) than 5e-9 are represented as
    zero.
    Defaults to ``numpy.get_printoptions()['suppress']``.

Returns
-------
string : str
  The string representation of an array.

See Also
--------
array_str, array2string, set_printoptions

Examples
--------
>>> import numpy as np
>>> np.array_repr(np.array([1,2]))
'array([1, 2])'
>>> np.array_repr(np.ma.array([0.]))
'MaskedArray([0.])'
>>> np.array_repr(np.array([], np.int32))
'array([], dtype=int32)'

>>> x = np.array([1e-6, 4e-7, 2, 3])
>>> np.array_repr(x, precision=6, suppress_small=True)
'array([0.000001,  0.      ,  2.      ,  3.      ])'

)rþ  r   s       r0   r   r   s  s   € ô\ &Ø˜Yó8ð 8rj   c                 óX   • [        U [        5      (       a  [        U 5      $ [        U 5      $ r‹   )rO   ÚbytesrŽ   r”   )ra   s    r0   Ú_guarded_repr_or_strr  ¥  s!   € ä�!”U×ÑÜ�A‹wˆÜˆq‹6€Mrj   c                 óJ  • [         R                  " 5       S   S::  aD  U R                  S:X  a4  U R                  R                  (       d  [        U R                  5       5      $ U R                  S:X  a)  [        [        R                  R                  U S5      5      $ U" XX#SS5      $ )zDInternal version of array_str() that allows overriding array2string.r6   r:   r-   r5   rí   )r   rl   r€   rË   rÖ   r”   r�   r  rS   r   Ú__getitem__)rƒ   rû   rC   rü   r   s        r0   Ú_array_str_implementationr  ¬  s{   € ô 	×ÒÓ˜XÑ&¨#Ó-Ø�G‰G�r‹M !§'¡'§-§-Ü�1—6‘6“8‹}Ðð
 	‡w�w�"ƒ}ô $¤B§J¡J×$:Ñ$:¸1¸bÓ$AÓBÐBá˜¨9ÀcÈ2ÓNÐNrj   c                 ó   • U 4$ r‹   r-   ©rƒ   rû   rC   rü   s       r0   Ú_array_str_dispatcherr  À  s	   € àˆ4€Krj   c                 ó   • [        XX#5      $ )a  
Return a string representation of the data in an array.

The data in the array is returned as a single string.  This function is
similar to `array_repr`, the difference being that `array_repr` also
returns information on the kind of array and its data type.

Parameters
----------
a : ndarray
    Input array.
max_line_width : int, optional
    Inserts newlines if text is longer than `max_line_width`.
    Defaults to ``numpy.get_printoptions()['linewidth']``.
precision : int, optional
    Floating point precision.
    Defaults to ``numpy.get_printoptions()['precision']``.
suppress_small : bool, optional
    Represent numbers "very close" to zero as zero; default is False.
    Very close is defined by precision: if the precision is 8, e.g.,
    numbers smaller (in absolute value) than 5e-9 are represented as
    zero.
    Defaults to ``numpy.get_printoptions()['suppress']``.

See Also
--------
array2string, array_repr, set_printoptions

Examples
--------
>>> import numpy as np
>>> np.array_str(np.arange(3))
'[0 1 2]'

)r  r
  s       r0   r   r   Å  s   € ôJ %Ø	˜9ó6ð 6rj   Ú__wrapped__)r   )NNNNNNNNNNNN)
NNNNNNNNNN)r-   )rï   )r5   rí   )NNNNN)NNNr5   rí   )NTr`   FNNN)NTTr`   FNNN)T)NNN)]rv  Ú__all__Ú__docformat__rè   rP   rJ   Ú_threadr   ÚImportErrorÚ_dummy_threadÚ
contextlibrU   rL   rf   rS   rí   r   rÍ   Úfromnumericr   Ú
multiarrayr   r   r   r   r   r   Únumericr   r   r   r   r   r   r   r   r   r   r   r   Úumathr    r!   r"   r#   re   r   ri   r   ru   Úcontextmanagerr�   r‰   r’   r•   rÉ   rÛ   rì   rø   rý   r   r	  r  rñ   r.  r£   r	   r   rž   r˜   r¨   rŸ  r«   r­   rÅ  r×   rç  rG   rê  rë  rò  rþ  r  r   r  r  r  r   ÚgetattrÚ_array2string_implÚpartialÚ_default_array_strÚ_default_array_reprr-   rj   r0   Ú<module>r     sŠ  ðñò
A€ð #€ó  Û Û 
ð(Ý!ó Û Û ã å !Ý ÷÷ ÷ 4Ñ 3ß =Ó =ß :Ý (ß 3Ó 3ð BFØJNØIMØ%)ô>ñB ˆGÓØ?CØ;?ØGKð}Bð  $°4õ}Bó ð}Bð@ AEØ<@ØHLð+ð !%°Dö+ñ( ˆGÓñ4ó ð4òn*ñ
 ˆGÓØ×Ññ%$ó ó ð%$ôPHò(òò
ò
0òd&(ôRñ< Óóó ðð: +/Ø48ðð  TØ˜T¨T¸$Øöñ Ð1¸'ÑBØ37Ø<>ðf8à"¨dØ d°dÀ2Øõ	f8ó Cðf8òRòò6zòx÷W@ñ W@ñt ˆGÓØADØBFØ'+óMLó ðMLñ` ˆGÓØ6:Ø<AØFJóYJó ðYJ÷v%ñ %÷&.ñ .÷ñ ÷B:ñ :ô4:�_ô :ô@#�oô #÷
0ñ 0÷4"0ñ "0ôJ:ð. �w 
¨C¯H©HÐ5€ò''òTðB !¨DÀØ!ô3(ðn BFôñ
 Ð/¸Ñ@ó.8ó Að.8ñb Óñó ðð ¨$¸tØ!ôOð* @Dôñ
 Ð.°wÑ?ó%6ó @ð%6ñR ˜\¨=¸,ÓGÐ Ø×&Ò&Ð'@Ø4FñHÐ à×'Ò'Ð(BØ5GñIÑ øðg6 ó (ß'Ð'ð(ús   –I ÉIÉI