?¡ëPNG  IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À? ¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
Ñò \ÐKc @s÷dddddddddd d d d g Zd dkZd dkiiZd dklZlZlZl Z l Z l Z d dk l Z d dkZd dkZd dkiZd dklZeiZd„Zd„Zdefd„ƒYZedeƒZedeƒZde_de_defd„ƒYZdefd„ƒYZ e ƒZ!defd„ƒYZ"e"ƒZ#defd„ƒYZ$d efd„ƒYZ%defd „ƒYZ&e&d!eƒZ'e&d!eƒZ(d"„Z)d#d$„Z*d%„Z+dS(&t unravel_indextmgridtogridtr_tc_ts_t index_exptix_t ndenumeratetndindext fill_diagonalt diag_indicestdiag_indices_fromiÿÿÿÿN(tasarrayt ScalarTypetarraytalltruetcumprodtarange(tfind_common_type(tdiffcCsŽ|ti|ƒdjp |djotdƒ‚nti|ƒ}tidgt|ƒddd…ƒddd…}t|||ƒS(s° Convert a flat index to an index tuple for an array of given shape. Parameters ---------- x : int Flattened index. dims : tuple of ints Input shape, the shape of an array into which indexing is required. Returns ------- idx : tuple of ints Tuple of the same shape as `dims`, containing the unraveled index. Notes ----- In the Examples section, since ``arr.flat[x] == arr.max()`` it may be easier to use flattened indexing than to re-map the index to a tuple. Examples -------- >>> arr = np.arange(20).reshape(5, 4) >>> arr array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11], [12, 13, 14, 15], [16, 17, 18, 19]]) >>> x = arr.argmax() >>> x 19 >>> dims = arr.shape >>> idx = np.unravel_index(x, dims) >>> idx (4, 3) >>> arr[idx] == arr.max() True iis4Invalid index, must be 0 <= x <= number of elements.Niÿÿÿÿ(t_nxtprodt ValueErrort empty_likeRtlistttuple(txtdimstidxtdim_prod((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyRs *' 6cGsÙg}t|ƒ}dg|}x­t|ƒD]Ÿ}ti||ƒ}|idjo td‚nt|iiti ƒo|i ƒd}nt|ƒ||<|i t |ƒƒ}|i |ƒd||>> a = np.arange(10).reshape(2, 5) >>> a array([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]]) >>> ixgrid = np.ix_([0,1], [2,4]) >>> ixgrid (array([[0], [1]]), array([[2, 4]])) >>> ixgrid[0].shape, ixgrid[1].shape ((2, 1), (1, 2)) >>> a[ixgrid] array([[2, 4], [7, 9]]) is!Cross index must be 1 dimensionali(tlentrangeRR tndimRt issubclasstdtypettypetbool_tnonzerotreshapeRtappend(targstouttndt baseshapetktnew((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyRSs,     tnd_gridcBs5eZdZed„Zd„Zd„Zd„ZRS(s Construct a multi-dimensional "meshgrid". ``grid = nd_grid()`` creates an instance which will return a mesh-grid when indexed. The dimension and number of the output arrays are equal to the number of indexing dimensions. If the step length is not a complex number, then the stop is not inclusive. However, if the step length is a **complex number** (e.g. 5j), then the integer part of its magnitude is interpreted as specifying the number of points to create between the start and stop values, where the stop value **is inclusive**. If instantiated with an argument of ``sparse=True``, the mesh-grid is open (or not fleshed out) so that only one-dimension of each returned argument is greater than 1. Parameters ---------- sparse : bool, optional Whether the grid is sparse or not. Default is False. Notes ----- Two instances of `nd_grid` are made available in the NumPy namespace, `mgrid` and `ogrid`:: mgrid = nd_grid(sparse=False) ogrid = nd_grid(sparse=True) Users should use these pre-defined instances instead of using `nd_grid` directly. Examples -------- >>> mgrid = np.lib.index_tricks.nd_grid() >>> mgrid[0:5,0:5] array([[[0, 0, 0, 0, 0], [1, 1, 1, 1, 1], [2, 2, 2, 2, 2], [3, 3, 3, 3, 3], [4, 4, 4, 4, 4]], [[0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]]]) >>> mgrid[-1:1:5j] array([-1. , -0.5, 0. , 0.5, 1. ]) >>> ogrid = np.lib.index_tricks.nd_grid(sparse=True) >>> ogrid[0:5,0:5] [array([[0], [1], [2], [3], [4]]), array([[0, 1, 2, 3, 4]])] cCs ||_dS(N(tsparse(tselfR0((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyt__init__Êsc Csyœg}t}xÿtt|ƒƒD]ë}||i}||i}|djo d}n|djo d}nt|tƒo#|itt |ƒƒƒt }n*|it i ||i ||dƒƒt|t ƒp't|t ƒpt||i t ƒo t }q"q"W|io&td„||ft|ƒƒ}nti||ƒ}xÎtt|ƒƒD]º}||i}||i}|djo d}n|djo d}nt|tƒoFtt |ƒƒ}|djo#||i |t |dƒ}q n||||||ßs(tintR RtsteptstarttNonet isinstancetcomplexR(tabstfloattmathtceiltstopR0tmapRtindicestnewaxistslicet IndexErrort TypeErrorR( R1tkeytsizettypR-R6R7tnntslobjR?tlength((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyt __getitem__Ìst     )       '         cCsti||ƒS(N(RR(R1titj((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyt __getslice__scCsdS(Ni((R1((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyt__len__s(t__name__t __module__t__doc__tFalseR2RLRORP(((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR/Žs ;  7 R0tAxisConcatenatorcBsGeZdZd„Zdeddd„Zd„Zd„Zd„ZRS( sw Translates slice objects to concatenation along an axis. For detailed documentation on usage, see `r_`. cCsl|io=|i}t|ƒ}|djo|io |i}qGn|i|_|i|_d|_|S(Nii(tmatrixR!tmakemattcoltTt_axistaxist_matrix(R1trestoldndim((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyt_retvals      iiiÿÿÿÿcCsC||_||_||_||_d|_||_||_dS(Ni(RZR\R[RVRXttrans1dtndmin(R1R[RVRaR`((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR2 s      c CsÙ|i}|i}t|tƒo/tiƒi}ti||i |i ƒ}|St |ƒt j o |f}ng}g}g}g} xÚt t|ƒƒD]Æ} t} t || ƒtjoø|| i} || i} || i}| djo d} n| djo d} nt| tƒo.tt| ƒƒ}ti| |d|ƒ}nti| || ƒ}|djo?t|dtd|ƒ}|djo|id|ƒ}q³q&npt|| tƒo(| djo td‚n|d}|djot|_|d j|_ qœnd |joˆ|i!d ƒ}ybg}|d D]}|t|ƒqI~\|_"}t|ƒd jot|d ƒ}nwœWq°td ‚q°Xnyt|| ƒ|_"wœWq&tt#fj otd ‚q&Xn4t || ƒt$jo=t|| d|ƒ}|i%| ƒt} | i%|i&ƒnà|| }|djoÈt|dtdtƒ}t|dtdtd|ƒ}|djo~|i'|jon||i'}|djo||d7}nt |ƒ}|}|| |||||!}|i(|ƒ}n~n|i%|ƒ| o't|ti)ƒo|i%|i&ƒqœqœWt*|| ƒ}|dj o,x)|D]} || i+|ƒ|| >> np.r_[np.array([1,2,3]), 0, 0, np.array([4,5,6])] array([1, 2, 3, 0, 0, 4, 5, 6]) >>> np.r_[-1:1:6j, [0]*3, 5, 6] array([-1. , -0.6, -0.2, 0.2, 0.6, 1. , 0. , 0. , 0. , 5. , 6. ]) String integers specify the axis to concatenate along or the minimum number of dimensions to force entries into. >>> np.r_['-1', a, a] # concatenate along last axis array([[0, 1, 2, 0, 1, 2], [3, 4, 5, 3, 4, 5]]) >>> np.r_['0,2', [1,2,3], [4,5,6]] # concatenate along first axis, dim>=2 array([[1, 2, 3], [4, 5, 6]]) >>> np.r_['0,2,0', [1,2,3], [4,5,6]] array([[1], [2], [3], [4], [5], [6]]) >>> np.r_['1,2,0', [1,2,3], [4,5,6]] array([[1, 4], [2, 5], [3, 6]]) Using 'r' or 'c' as a first string argument creates a matrix. >>> np.r_['r',[1,2,3], [4,5,6]] matrix([[1, 2, 3, 4, 5, 6]]) cCsti|dƒdS(Ni(RUR2(R1((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR2ês(RQRRRSR2(((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR‰s\tCClasscBseZdZd„ZRS(s" Translates slice objects to concatenation along the second axis. This is short-hand for ``np.r_['-1,2,0', index expression]``, which is useful because of its common occurrence. In particular, arrays will be stacked along their last axis after being upgraded to at least 2-D with 1's post-pended to the shape (column vectors made out of 1-D arrays). For detailed documentation, see `r_`. Examples -------- >>> np.c_[np.array([[1,2,3]]), 0, 0, np.array([[4,5,6]])] array([[1, 2, 3, 0, 0, 4, 5, 6]]) cCs ti|dddddƒdS(NiÿÿÿÿRaiR`i(RUR2(R1((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR2s(RQRRRSR2(((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyRŠïscBs)eZdZd„Zd„Zd„ZRS(s¢ Multidimensional index iterator. Return an iterator yielding pairs of array coordinates and values. Parameters ---------- a : ndarray Input array. See Also -------- ndindex, flatiter Examples -------- >>> a = np.array([[1, 2], [3, 4]]) >>> for index, x in np.ndenumerate(a): ... print index, x (0, 0) 1 (0, 1) 2 (1, 0) 3 (1, 1) 4 cCst|ƒi|_dS(N(R tflattiter(R1tarr((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR2scCs|ii|iiƒfS(s Standard iterator method, returns the index tuple and array value. Returns ------- coords : tuple of ints The indices of the current iteration. val : scalar The array element of the current iteration. (RŒtcoordstnext(R1((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR"s cCs|S(N((R1((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyt__iter__0s(RQRRRSR2RR(((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyRs  cBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(sT An N-dimensional iterator object to index arrays. Given the shape of an array, an `ndindex` instance iterates over the N-dimensional index of the array. At each iteration a tuple of indices is returned, the last dimension is iterated over first. Parameters ---------- `*args` : ints The size of each dimension of the array. See Also -------- ndenumerate, flatiter Examples -------- >>> for index in np.ndindex(3, 2, 1): ... print index (0, 0, 0) (0, 1, 0) (1, 0, 0) (1, 1, 0) (2, 0, 0) (2, 1, 0) cGs¤t|ƒdjo"t|dtƒo|d}nt|ƒ|_dg|i|_d|_||_d}x%t|iƒD]}|||9}qW||_dS(Nii( RR9RR+tindtindextmaxvalsR ttotal(R1R)ttotR-((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR2Rs'  cCsj|djodS|i||i|djo|i|cd7>> np.s_[2::2] slice(2, None, 2) >>> np.index_exp[2::2] (slice(2, None, 2),) >>> np.array([0, 1, 2, 3, 4])[np.s_[2::2]] array([2, 4]) cCs ||_dS(N(t maketuple(R1R›((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR2¿scCs3|io!t|ƒtdƒjo|fS|SdS(N((R›R$(R1titem((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyRLÂs#cCs|iS(N(tmaxint(R1((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyRPÈscCs+||ijo d}n|||d…S(N(RR8(R1R7R?((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyROËs ( RQRRRSRiRR2RLRPRO(((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyRš“s *    R›cCs¨|idjotdƒ‚n|idjo|idd}nJtt|iƒdjƒptdƒ‚ndt|id ƒiƒ}||idd|… 2``, the diagonal is the list of locations with indices ``a[i, i, ..., i]`` all identical. This function modifies the input array in-place, it does not return a value. Parameters ---------- a : array, at least 2-D. Array whose diagonal is to be filled, it gets modified in-place. val : scalar Value to be written on the diagonal, its type must be compatible with that of the array a. See also -------- diag_indices, diag_indices_from Notes ----- .. versionadded:: 1.4.0 This functionality can be obtained via `diag_indices`, but internally this version uses a much faster implementation that never constructs the indices and uses simple slicing. Examples -------- >>> a = zeros((3, 3), int) >>> fill_diagonal(a, 5) >>> a array([[5, 0, 0], [0, 5, 0], [0, 0, 5]]) The same function can operate on a 4-D array: >>> a = zeros((3, 3, 3, 3), int) >>> fill_diagonal(a, 4) We only show a few blocks for clarity: >>> a[0, 0] array([[4, 0, 0], [0, 0, 0], [0, 0, 0]]) >>> a[1, 1] array([[0, 0, 0], [0, 4, 0], [0, 0, 0]]) >>> a[2, 2] array([[0, 0, 0], [0, 0, 0], [0, 0, 4]]) isarray must be at least 2-diis/All dimensions of input must be of equal lengthiÿÿÿÿN(R!RtshapeRRRtsumR‹(taR™R6((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR Ùs;icCst|ƒ}|f|S(s+ Return the indices to access the main diagonal of an array. This returns a tuple of indices that can be used to access the main diagonal of an array `a` with ``a.ndim >= 2`` dimensions and shape (n, n, ..., n). For ``a.ndim = 2`` this is the usual diagonal, for ``a.ndim > 2`` this is the set of indices to access ``a[i, i, ..., i]`` for ``i = [0..n-1]``. Parameters ---------- n : int The size, along each dimension, of the arrays for which the returned indices can be used. ndim : int, optional The number of dimensions. See also -------- diag_indices_from Notes ----- .. versionadded:: 1.4.0 Examples -------- Create a set of indices to access the diagonal of a (4, 4) array: >>> di = np.diag_indices(4) >>> di (array([0, 1, 2, 3]), array([0, 1, 2, 3])) >>> a = np.arange(16).reshape(4, 4) >>> a array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11], [12, 13, 14, 15]]) >>> a[di] = 100 >>> a array([[100, 1, 2, 3], [ 4, 100, 6, 7], [ 8, 9, 100, 11], [ 12, 13, 14, 100]]) Now, we create indices to manipulate a 3-D array: >>> d3 = np.diag_indices(2, 3) >>> d3 (array([0, 1]), array([0, 1]), array([0, 1])) And use it to set the diagonal of an array of zeros to 1: >>> a = np.zeros((2, 2, 2), dtype=np.int) >>> a[d3] = 1 >>> a array([[[1, 0], [0, 0]], [[0, 0], [0, 1]]]) (R(tnR!R((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR %s@ cCsc|idjptdƒ‚ntt|iƒdjƒptdƒ‚nt|id|iƒS(s Return the indices to access the main diagonal of an n-dimensional array. See `diag_indices` for full details. Parameters ---------- arr : array, at least 2-D See Also -------- diag_indices Notes ----- .. versionadded:: 1.4.0 is input array must be at least 2-dis/All dimensions of input must be of equal length(R!RRRRžR (R((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pyR is (,t__all__Ritnumpy.core.numerictcoretnumericRR RRRRRtnumpy.core.numerictypesRR=Rotnumpy.matrixlibt matrixlibRVRRWRRtobjectR/RTRRrRR8RSRUR‰RRŠRRR RšRRR R R (((s</usr/lib64/python2.6/site-packages/numpy/lib/index_tricks.pytsF  .    = ;{  `  /_= L D