?¡ë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´dZdddddddgZdd kZdd kZdd klZlZlZl Z l Z dd k l Z l Z ydd kZWnej o d ZnXed jo;d „ZeZeZeZeZdd klZeZnFdd kiiZeiƒZ[eiZd„Ze eddƒZd„Z ddddddgZ!d„Z"defd„ƒYZ#hZ$d d d d d„Z%ed j oeZ&hZ'd„Z(ei)djo dZ*ndZ*e&i+e&i,e&i-e&i.e&i/fdfe&i0e&i1e&i2e&i3e&i4fdfe&i5e&i6fd fgZ7xEe7D]=\Z8Z9x.e8D]&Z:e(e:e*e9e&i;e:ƒfƒqPWq=We<e&i-d!ƒZ=d"„Z>d#„Zd$„Znd S(%sý ============================ ``ctypes`` Utility Functions ============================ See Also --------- load_library : Load a C library. ndpointer : Array restype/argtype with verification. as_ctypes : Create a ctypes array from an ndarray. as_array : Create an ndarray from a ctypes array. References ---------- .. [1] "SciPy Cookbook: ctypes", http://www.scipy.org/Cookbook/Ctypes Examples -------- Load the C library: >>> _lib = np.ctypeslib.load_library('libmystuff', '.') #DOCTEST: +ignore Our result type, an ndarray that must be of type double, be 1-dimensional and is C-contiguous in memory: >>> array_1d_double = np.ctypeslib.ndpointer( ... dtype=np.double, ... ndim=1, flags='CONTIGUOUS') #DOCTEST: +ignore Our C-function typically takes an array and updates its values in-place. For example:: void foo_func(double* x, int length) { int i; for (i = 0; i < length; i++) { x[i] = i*i; } } We wrap it using: >>> lib.foo_func.restype = None #DOCTEST: +ignore >>> lib.foo.argtypes = [array_1d_double, c_int] #DOCTEST: +ignore Then, we're ready to call ``foo_func``: >>> out = np.empty(15, dtype=np.double) >>> _lib.foo_func(out, len(out)) #DOCTEST: +ignore t load_libraryt ndpointerttesttctypes_load_librarytc_intpt as_ctypestas_arrayiÿÿÿÿN(tintegertndarraytdtypet deprecatetarray(t _flagdicttflagsobjcOs td‚dS(s± Dummy object that raises an ImportError if ctypes is not available. Raises ------ ImportError If ctypes is not available. sctypes is not available.N(t ImportError(targstkwds((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt_dummyAs (tintpc CsStidjoddk}|idƒntii|ƒd}|phd|d|g}tidjo|i dd |ƒq»tid jo|i dd |ƒq»n |g}tii |ƒ}tii |ƒptii |ƒ}n|}xJ|D]B}y$tii ||ƒ}ti|SWqtj o }qXqW|‚dS( Ns1.0.1iÿÿÿÿsAAll features of ctypes interface may not work with ctypes < 1.0.1is%s.sos%s.pydtwin32is%s.dlltdarwins%s.dylib(tctypest __version__twarningstwarntostpathtsplitexttsystplatformtinserttabspathtisdirtdirnametjointcdlltOSError( tlibnamet loader_pathRtextt libname_exttlibdirtlntlibpathte((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyRYs.   cCs)d}x|D]}|t|7}q W|S(Ni(R (tflaglisttnumtval((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt_num_fromflagss t C_CONTIGUOUSt F_CONTIGUOUStALIGNEDt WRITEABLEtOWNDATAt UPDATEIFCOPYcCsAg}x4tD],}t|}||@o|i|ƒq q W|S(N(t _flagnamesR tappend(R.trestkeytvalue((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt_flags_fromnum‡s  t_ndptrcBs/eZd„Zed„ƒZed„ƒZRS(cCs t|ƒS(sªThis method is called when this class is used as the .restype asttribute for a shared-library function. It constructs a numpy array from a void pointer.(R (tself((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt_check_retval_’scCsUh|iid6|d6dd6|id6dd6|iiddd 6|itfd 6S( Ntdescrt__reftstridestshapeitversioniittypestrtdata(t_dtype_R@tNonet_shape_R;tFalse(R>((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt__array_interface__˜s cCst|tƒp td‚n|idj o'|i|ijotd|i‚n|idj o'|i|ijotd|i‚n|idj o-|i |ijotdt |iƒ‚n|i dj o7|i i |i @|i jotdt|i ƒ‚n|iS(Nsargument must be an ndarraysarray must have data type %ssarray must have %d dimension(s)sarray must have shape %ssarray must have flags %s(t isinstanceRt TypeErrorRGRHR t_ndim_tndimRIRCtstrt_flags_tflagsR.R<R(tclstobj((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt from_param£s  (t__name__t __module__R?tpropertyRKt classmethodRU(((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyR=s  c Cs˜|d j ot|ƒ}nd }|d j oÝt|tƒo|idƒ}nVt|ttfƒo|}t|ƒ}n*t|tƒo|i }t|ƒ}n|d joTy1g}|D]}||i ƒi ƒqÃ~}Wnt d‚nXt |ƒ}q nyt||||fSWntj onX|d jo d}n*|iott|ƒƒ}n |i}|d j o|d|7}n|d j o€y+g}|D]}|t|ƒqµ~} Wn+t j ot|ƒg} |f}nXt|ƒ}|ddi| ƒ7}n|d j o|ddi|ƒ7}ng}td|tfh|d6|d 6|d 6|d 6ƒ} | t|<| S( s Array-checking restype/argtypes. An ndpointer instance is used to describe an ndarray in restypes and argtypes specifications. This approach is more flexible than using, for example, ``POINTER(c_double)``, since several restrictions can be specified, which are verified upon calling the ctypes function. These include data type, number of dimensions, shape and flags. If a given array does not satisfy the specified restrictions, a ``TypeError`` is raised. Parameters ---------- dtype : data-type, optional Array data-type. ndim : int, optional Number of array dimensions. shape : tuple of ints, optional Array shape. flags : str or tuple of str Array flags; may be one or more of: - C_CONTIGUOUS / C / CONTIGUOUS - F_CONTIGUOUS / F / FORTRAN - OWNDATA / O - WRITEABLE / W - ALIGNED / A - UPDATEIFCOPY / U Returns ------- klass : ndpointer type object A type object, which is an ``_ndtpr`` instance containing dtype, ndim, shape and flags information. Raises ------ TypeError If a given array does not satisfy the specified restrictions. Examples -------- >>> clib.somefunc.argtypes = [np.ctypeslib.ndpointer(dtype=np.float64, ... ndim=1, ... flags='C_CONTIGUOUS')] >>> clib.somefunc(np.array([1, 2, 3], dtype=np.float64)) t,sinvalid flags specificationtanys_%ddt_txs ndpointer_%sRGRIRNRQN(RHt_dtypeRLRPtsplittintRR<R R.tstriptupperRMR0t_pointer_type_cachetKeyErrortnamestidttupleR"ttypeR=( R RORCRRR.t_[1]R]tnamet_[2]tstrshapetklass((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyRºs^2    1       +     csQy |iWntj onXdS|tˆ<‡fd†}t|ƒ|_dS(s„Given a ctypes simple type, construct and attach an __array_interface__ property to it if it does not yet have one. NcsMhdˆfgd6|d6dd6d d6dd6ˆd6ti|ƒtfd 6S( NtR@RARBRCiRDRERF((RHtctt addressofRJ(R>(RE(s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyRK1s(RKtAttributeErrort _typecodesRX(t simple_typeRERK((REs5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt prep_simple's   tlittles<%c%ds>%c%dtitutfics¹y |iWntj onXdSg‰|}x1t|ƒtjoˆi|iƒ|i}q4Wtˆƒ‰|ƒi}|d‰|d‰‡‡‡fd†}t|ƒ|_dS(sƒGiven a ctypes array type, construct and attach an __array_interface__ property to it if it does not yet have one. NR@REcsDhˆd6|d6dd6ˆd6dd6ˆd6ti|ƒtfd6S( NR@RARBRCiRDRERF(RHRoRpRJ(R>(R@RCRE(s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyRKds ( RKRqRht _ARRAY_TYPER8t_length_t_type_RgRX(t array_typetobtaiRK((R@RCREs5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt prep_arrayRs"      cCsGt|ƒ}y |iWntj ot|ƒnXt|dtƒS(slCreate a numpy array from a ctypes array. The numpy array shares the memory with the ctypes object.tcopy(RhRKRqRR RJ(RTttp((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyRss   cCsÂ|i}|dotdƒ‚n|ddjotdƒ‚n|d\}}|otdƒ‚nt|d}x)|d d d d …D]}||}q’W|i|ƒ}||_|S( s‚Create and return a ctypes object from a numpy array. Actually anything that exposes the __array_interface__ is accepted.RBsstrided arrays not supportedRDis,only __array_interface__ version 3 supportedRFsreadonly arrays unsupportedRERCNiÿÿÿÿ(RKRMRrt from_addresst__keep(RTR~taddrtreadonlyRtdimtresult((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyR{s   (?t__doc__t__all__RRtnumpyRRR R^R R tnumpy.core.multiarrayR R RRRHRRRRRRRtobjectt _ndptr_basetnumpy.core._internaltcoret _internaltnict_getintp_ctypetc_void_pR0R7R<R=RcRRoRrRtt byteordertTYPESTRtc_bytetc_shorttc_inttc_longt c_longlongtc_ubytetc_ushorttc_uinttc_ulongt c_ulonglongtc_floattc_doublet simple_typesttypestcodeRtsizeofRhRyR(((s5/usr/lib64/python2.6/site-packages/numpy/ctypeslib.pyt3sd (       #      )d   '' ( !