Your IP : 216.73.216.213


Current Path : /opt/alt/python27/lib64/python2.7/site-packages/numpy/core/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyc

�
��]c	@`sbdZddlmZmZmZdddgZdZddlZddlZej	ddkr�ydd	l
mZWq�ek
r�dd	l
mZq�Xn8ydd	lmZWn!ek
r�dd	lmZnXd
dlmZd
dlmZmZmZmZmZmZd
d
lmZmZmZmZmZd
dl m!Z!d
dl"m#Z#ej	ddkr�ej$Z%ej$d
Z&nej'Z%ej'd
Z&d�Z(da)da*da+e,a-da.da/da0da2ddddddddd�Z3d�Z4d�Z5d�Z6d�Z7d�Z8d�Z9d�Z:dddd �Z;d!d"�Z<e<�ddddde=dd#��Z>d$�Z?d%�Z@d&eAfd'��YZBd(�ZCd)eAfd*��YZDd+eAfd,��YZEd-eAfd.��YZFd/eAfd0��YZGd1eAfd2��YZHd3eAfd4��YZId5eAfd6��YZJd7eAfd8��YZKdS(9sXArray printing function

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

i(tdivisiontabsolute_importtprint_functiontarray2stringtset_printoptionstget_printoptionstrestructuredtextNi(t	get_identi(tnumerictypes(tmaximumtminimumtabsolutet	not_equaltisnantisinf(tarraytformat_longfloattdatetime_as_stringt
datetime_datatdtype(travel(tasarraycC`s||S(N((txty((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pytproduct-si�iiKtnantinfcC`s�|dk	r|an|dk	r*|an|dk	r?|an|dk	rT|an|dk	rk|an|dk	r�|an|dk	r�|an|adS(s�

    Set printing options.

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

    Parameters
    ----------
    precision : int, optional
        Number of digits of precision for floating point output (default 8).
    threshold : int, optional
        Total number of array elements which trigger summarization
        rather than full repr (default 1000).
    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
        Whether or not suppress printing of small floating point values
        using scientific notation (default 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).
    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.string_` and `numpy.unicode_`
            - 'object' : `np.object_` arrays
            - 'str' : all other strings

        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 'str' and 'numpystr'

    See Also
    --------
    get_printoptions, set_string_function, array2string

    Notes
    -----
    `formatter` is always reset with a call to `set_printoptions`.

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

    >>> np.set_printoptions(precision=4)
    >>> print(np.array([1.123456789]))
    [ 1.1235]

    Long arrays can be summarised:

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

    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)
    N(	tNonet_line_widtht_summaryThresholdt_summaryEdgeItemst_float_output_precisiont_float_output_suppress_smallt_nan_strt_inf_strt
_formatter(t	precisiont	thresholdt	edgeitemst	linewidthtsuppresstnanstrtinfstrt	formatter((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR;sn						cC`s=tdtdtdtdtdtdtdtdt�}|S(	s	
    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
          - formatter : dict of callables

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

    See Also
    --------
    set_printoptions, set_string_function

    R$R%R&R'R(R)R*R+(	tdictRRRRR R!R"R#(td((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�s	cC`sAddlm}|jdkr_t|�dtkrV|j|t |tf�}q=|}n�t|�dtkr�gttt|�t��D]}t||�^q�}|j	gttt|�t�dd�D]}t||�^q��n2gtdt|��D]}t||�^q}|jt
|��}|S(Ni(tnumericiii����(tR.tndimtlenRtconcatenatetrangetmint_leading_trailingtextendttuple(tat_nctbtitl((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR5�s
	2=2cC`s|r
dSdSdS(Ns TruetFalse((R((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt_boolFormatter�scC`s.t|�tkrd}nd}|j|�S(s@ Object arrays containing lists should be printed unambiguously s
list({!r})s{!r}(ttypetlisttformat(totfmt((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt_object_format�s	cC`s
t|�S(N(trepr(R((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pytrepr_format�sc	`sNid�d6�fd�d6���fd�d6�fd�d6���fd	�d
6�fd�d6�fd
�d6�fd�d6d�d6d�d6d�d6}d�}|dk	rJg|j�D]}||dk	r�|^q�}d|kr(x+|j�D]}||d�||<qWnd|kr_x(dgD]}||d�||<q>Wnd|kr�x+ddgD]}||d�||<qxWnd|kr�x+d
dgD]}||d�||<q�Wnd|kr
x+ddgD]}||d�||<q�Wnx:|j�D])}||kr|||�||<qqWn|S(NcS`stS(N(R>(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt<lambda>R/tboolc`s
t��S(N(t
IntegerFormat((tdata(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGR/tintc`st����S(N(tFloatFormat((RJR$tsuppress_small(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGR/tfloatc`s
t��S(N(tLongFloatFormat((R$(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGR/t	longfloatc`st����S(N(t
ComplexFormat((RJR$RM(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGs	tcomplexfloatc`s
t��S(N(tLongComplexFormat((R$(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGR/tlongcomplexfloatc`s
t��S(N(tDatetimeFormat((RJ(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRG	R/tdatetimec`s
t��S(N(tTimedeltaFormat((RJ(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRG
R/t	timedeltacS`stS(N(RD(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGR/tobjectcS`stS(N(RF(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGR/tnumpystrcS`stS(N(tstr(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRG
R/R[c`s
�fd�S(Nc`s�S(N(((R(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRGR/((R((RsH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pytindirectstalltint_kindt
float_kindtcomplex_kindtstr_kind(Rtkeys(	RJR$RMR+t
formatdictR\tktfkeystkey((RJR$RMsH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt_get_formatdictsB



	/cC`s�|j}|jdk	r�g}xe|jD]Z}||}tt|�|||�}||jdkrut|�}n|j|�q(Wt	|�S|j
}	t||||�}
t|	t
j�r�|
d�St|	t
j�rt|	t
j�r�|
d�S|
d�Sn�t|	t
j�rEt|	t
j�r7|
d�S|
d�Sn�t|	t
j�r�t|	t
j�rt|
d�S|
d�Snkt|	t
jt
jf�r�|
d�St|	t
j�r�|
d	�St|	t
j�r�|
d
�S|
d�SdS(
s;
    find the right formatting function for the dtype_
    RHRXRKRPRNRTRRRZRVRYN((RtfieldsRtnamest_get_format_functionRtshapetSubArrayFormattappendtStructureFormatR?Rgt
issubclasst_nttbool_tintegerttimedelta64tfloatingRPtcomplexfloatingt
clongfloattunicode_tstring_t
datetime64tobject_(RJR$RMR+tdtype_tformat_functionst
field_nametfield_valuestformat_functiontdtypeobjRc((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRj+sD	

	t R/c	C`s�|jtkr$d}t|�}nd}tt|��}t||||�}	d}
|
dt|�7}
t||	|j||
|t	|�d }|S(Ns..., R/R�i����(
tsizeRR5RRRjR1t_formatArrayR0R(R8tmax_line_widthR$RMt	separatortprefixR+tsummary_insertRJRtnext_line_prefixtlst((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt
_array2stringWs	s...c`s�fd�}|S(s
    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`s1t��tj�����fd��}|S(Nc`s[t|�t�f}|�kr%�S�j|�z�|||�SWd�j|�XdS(N(tidRtaddtdiscard(tselftargstkwargsRf(tft	fillvaluetrepr_running(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pytwrapper}s
(tsett	functoolstwraps(R�R�(R�(R�R�sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pytdecorating_functionzs	$((R�R�((R�sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt_recursive_guardps
c	C`s|dkrt}n|dkr*t}n|dkr?t}n|dkrTt}n|jdkr�|j�}|jjdk	r�t	|gd|j�}	t
|	|||�}
|
|	d�}q||�}nEtjt
|j�dkr�d}n!t||||||d|�}|S(s�
    Return a string representation of an array.

    Parameters
    ----------
    a : ndarray
        Input array.
    max_line_width : int, optional
        The maximum number of columns the string should span. Newline
        characters splits the string appropriately after array elements.
    precision : int, optional
        Floating point precision. Default is the current printing
        precision (usually 8), which can be altered using `set_printoptions`.
    suppress_small : bool, optional
        Represent very small numbers as zero. A number is "very small" if it
        is smaller than the current printing precision.
    separator : str, optional
        Inserted between elements.
    prefix : str, optional
        An array is typically printed as::

          'prefix(' + array2string(a) + ')'

        The length of the prefix string is used to align the
        output correctly.
    style : function, optional
        A function that accepts an ndarray and returns a string.  Used only
        when the shape of `a` is equal to ``()``, i.e. for 0-D arrays.
    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.string_` and `numpy.unicode_`
            - 'str' : all other strings

        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 'str' and 'numpystr'

    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
    --------
    >>> x = np.array([1e-16,1,2,3])
    >>> print(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)})
    '[0x0L 0x1L 0x2L]'

    Ris[]R+N((RRRR R#RktitemRRhRRjR�treduceRR�(R8R�R$RMR�R�tstyleR+RtarrRR�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�s*b					cC`sYt|j��t|j��|krE||j�d7}|}n||7}||fS(Ns
(R1trstrip(tstlinetwordtmax_line_lenR�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt_extendLines
(	
cC`s?|dkrtd��n|rLd|t|�krL|}|}	|}
nd}t|�}	d}
|dkr�d}|}xFt|�D]8}
|||
�|}t|||||�\}}q�W|
r�t|||
||�\}}nxMt|	dd�D]9}
|||
�|}t|||||�\}}q�W||d�}t|||||�\}}||d7}d|t|�}n�d}|j�}x�t|�D]{}
|
dkr�||7}n|t||
||d|d	||||�7}|j�|j�d
t|dd�}q�W|
rH|||
d
7}nx�t|	dd�D]�}
|ss|
|	kr�||7}n|t||
||d|d	||||�7}|j�|j�d
t|dd�}q[W|s�|	dkr||7}n|t|d||d|d	||||�j�d7}|S(sgformatArray is designed for two modes of operation:

    1. Full output

    2. Summarized output

    isrank shouldn't be zero.iR/ii����s]
t[R�s
(t
ValueErrorR1R3R�R�R�tmax(R8RtrankR�R�R�t
edge_itemsR�t
leading_itemsttrailing_itemstsummary_insert1R�R�R;R�tsep((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�s`		"!"


/


/

RLcB`s)eZed�Zd�Zed�ZRS(cC`se||_||_||_t|_t|_d|_y|j|�Wntt	fk
r`nXdS(Ni(
R$RMtsignR=t
exp_formattlarge_exponenttmax_str_lent
fillFormatt	TypeErrortNotImplementedError(R�RJR$RMR�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt__init__[s						cC`s�ddlm}|jdd���t|�t|�B}t|d�|@}t|j|��}t|�dkr�d}d}nht	j
|�}tj
|�}|dkr�t|_
n|jr�|dks�||d	kr�t|_
nWdQX|j
r�d|kod
knp|dk|_d|j|_|jrP|jd7_n|jrbd
}nd}|d|j|jf}n�d|jf}t|�r�tg|D]}	t|	|j|�^q��}
nd}
t|j|
�}
ttt|���|
d|_|j|�rGt|jtt�tt�d�|_n|jrYd}nd}|d|j|
f}d|jf|_||_dS(Ni(R.R]tignoreigg�חAg-C��6?g@�@g>��N}a+g}Ô%�I�Tis%+t%s%d.%des%%.%dfis%#+s%#s%d.%dfs%%%ds(R/R.terrstateR
RRRtcompressR1R	R�R
tTrueR�RMR�R$R�R�R�t_digitsR4R[RKtanyR!R"tspecial_fmtRA(R�RJR9tspecialtvalidtnon_zerotmax_valtmin_valRARR$((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�isR		+			+#				cC`s�ddlm}|jdd���t|�r[|jrJ|jdtfS|jtfSnYt|�r�|dkr�|jr�|jdtfS|jtfSq�|jdtfSnWdQX|j	|}|j
r|d}|dks�|dkr||dd	!d
|d	}q|nk|jrF|dd
kr|d|d |d	}q|n6|r||jd
�}|dt
|�t
|�}n|S(Ni(R.tinvalidR�t+it-i����i����t0R�(R/R.R�R
R�R�R!RR"RAR�R�R�R1(R�Rtstrip_zerosR9R�texpsigntz((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt__call__�s0		
	
	!(t__name__t
__module__R=R�R�R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRLZs	3cC`sE|dkr=||}|jd�}|t|�t|�SdSdS(NiR�(R�R1(RR$RAR�R�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR��s

RIcB`seZd�Zd�ZRS(cC`s�yTttttj|���tttj|����}dt|�d|_Wn'ttfk
rmnt	k
r}nXdS(NR�R-(
R�R1R[R	R�R
RAR�R�R�(R�RJR�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR��s
cC`s3t|kotknr'|j|Sd|SdS(Ns%s(t_MININTt_MAXINTRA(R�R((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR��s(R�R�R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRI�s	
ROcB`seZed�Zd�ZRS(cC`s||_||_dS(N(R$R�(R�R$R�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR��s	cC`s�t|�r(|jrdtSdtSn�t|�rg|dkr\|jrQdtSdtSq�dtSnP|dkr�|jr�dt||j�Sdt||j�Snt||j�SdS(NR�R�iR�(R
R�R!RR"RR$(R�R((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR��s			(R�R�R=R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRO�sRScB`seZd�Zd�ZRS(cC`s(t|�|_t|dt�|_dS(NR�(ROtreal_formatR�timag_format(R�R$((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR��scC`s0|j|j�}|j|j�}||dS(Ntj(R�trealR�timag(R�RtrR;((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR��s(R�R�R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRS�s	RQcB`seZd�Zd�ZRS(cC`s:t|j||�|_t|j||dt�|_dS(NR�(RLR�R�R�R�R�(R�RR$RM((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�scC`s�|j|jdt�}|j|jdt�}|jjsp|jd�}|ddt|�t|�}n
|d}||S(NR�R�R�R�(R�R�R=R�R�R�R�R1(R�RR�R;R�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�
s%
(R�R�R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRQs	RUcB`s#eZdddd�Zd�ZRS(t	same_kindcC`sq|dkr=|jjdkr4t|j�d}q=d}n|dkrRd}n||_||_||_dS(NtMiR�tnaive(RRtkindRttimezonetunittcasting(R�RR�R�R�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�s				c	C`s)dt|d|jd|jd|j�S(Ns'%s'R�R�R�(RR�R�R�(R�R((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�$s		N(R�R�RR�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRUsRWcB`seZd�Zd�ZRS(cC`s|jjdkrtdgd|j�d}t|jjd�}|j|�}|t||j|��}t|�dkr�tttt	j
|���tttj
|����}nd}t|�t|�kr�t|d�}ndt|�d|_d	j
|�|_ndS(
NtmtNaTRiti8iR�R-s'NaT'(RR�Rt	byteordertviewRR1R�R[R	R�R
RAtrjustt_nat(R�RJt	nat_valuet	int_dtypetint_viewtvR�((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�+s!cC`sA|djd�|jd�kr)|jS|j|jd�SdS(NiR�(R�R�RAtastype(R�R((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�=s"(R�R�R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRW*s	RlcB`seZd�Zd�ZRS(cC`s
||_dS(N(R(R�R((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�Fsc`sY|jdkr4ddj�fd�|D��dSddj�fd�|D��dS(NiR�s, c3`s|]}�j|�VqdS(N(R(t.0R8(R�(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pys	<genexpr>Kst]c3`s|]}�j|�VqdS(N(R�(R�R8(R�(sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pys	<genexpr>Ls(R0tjoin(R�R�((R�sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�Is%(R�R�R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRlEs	RncB`seZd�Zd�ZRS(cC`s||_t|�|_dS(N(R|R1t
num_fields(R�R|((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�Ps	cC`sbd}x4t||j�D] \}}|||�d7}qWd|jkrV|d n|d dS(Nt(s, ii����i����t)(tzipR|R�(R�RR�tfieldR((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyR�Ts(R�R�R�R�(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyRnOs	(Lt__doc__t
__future__RRRt__all__t
__docformat__tsysR�tversion_infot_threadRtImportErrort
_dummy_threadtthreadtdummy_threadR/RRptumathR	R
RRR
Rt
multiarrayRRRRRtfromnumericRR.RtmaxsizeR�R�tmaxintRRRRR=R RR!R"RR#RRR5R>RDRFRgRjR�R�RERR�R�RYRLR�RIRORSRQRURWRlRn(((sH/opt/alt/python27/lib64/python2.7/site-packages/numpy/core/arrayprint.pyt<module>s~	

.(				{	#					+	,	}		Cd