%PDF- %PDF-
Direktori : /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/ |
Current File : //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/stride_tricks.pyo |
� �9Zc @` s� d Z d d l m Z m Z m Z d d l Z d d g Z d e f d � � YZ d � Z d d e d � Z d � Z e d � Z d � Z d � Z d S( s� Utilities that manipulate strides to achieve desirable effects. An explanation of strides can be found in the "ndarray.rst" file in the NumPy reference guide. i ( t divisiont absolute_importt print_functionNt broadcast_tot broadcast_arrayst DummyArrayc B` s e Z d Z d d � Z RS( s� Dummy object that just exists to hang __array_interface__ dictionaries and possibly keep alive a reference to a base array. c C` s | | _ | | _ d S( N( t __array_interface__t base( t selft interfaceR ( ( sJ /opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/stride_tricks.pyt __init__ s N( t __name__t __module__t __doc__t NoneR ( ( ( sJ /opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/stride_tricks.pyR s c C` sP t | � t | � k rL | j d t | � � } | j rL | j | � qL n | S( Nt type( R t viewt __array_finalize__( t original_arrayt new_array( ( sJ /opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/stride_tricks.pyt _maybe_view_as_subclass s c C` s� t j | d t d | �} t | j � } | d k rI t | � | d <n | d k rh t | � | d <n t j t | d | �� } | j j d k r� | j j d k r� | j | _ n t | | � S( sL Make an ndarray from the given array with the given shape and strides. t copyt subokt shapet stridesR N( t npt arrayt Falset dictR R t tuplet asarrayR t dtypet fieldsR ( t xR R R R R ( ( sJ /opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/stride_tricks.pyt as_strided&