;ò
‰Rã?c           @   s&   d  Z  d f  d „  ƒ  YZ e ƒ  Z d S(   sF  This module provides a convenient method for constructing
array indices algorithmically. It provides one importable object,
'index_expression'.

For any index combination, including slicing and axis insertion,
'a[indices]' is the same as 'a[index_expression[indices]]' for any
array 'a'. However, 'index_expression[indices]' can be used anywhere
in Python code and returns a tuple of indexing objects that can be
used in the construction of complex index expressions.

Sole restriction: Slices must be specified in the double-colon
form, i.e. a[::] is allowed, whereas a[:] is not.
s   _index_expression_classc           B   s5   t  Z d  k Z e i Z d „  Z d „  Z d „  Z RS(   Nc         C   s,   t  | ƒ t  f  ƒ j o | f Sn | Sd  S(   N(   s   types   item(   s   selfs   item(    (    s>   /mit/python/lib/python2.3/site-packages/Scientific/indexing.pys   __getitem__   s    c         C   s   |  i Sd  S(   N(   s   selfs   maxint(   s   self(    (    s>   /mit/python/lib/python2.3/site-packages/Scientific/indexing.pys   __len__$   s    c         C   s/   | |  i j o
 t } n |  | | t … Sd  S(   N(   s   stops   selfs   maxints   Nones   start(   s   selfs   starts   stop(    (    s>   /mit/python/lib/python2.3/site-packages/Scientific/indexing.pys   __getslice__'   s    
(   s   __name__s
   __module__s   syss   maxints   __getitem__s   __len__s   __getslice__(    (    (    s>   /mit/python/lib/python2.3/site-packages/Scientific/indexing.pys   _index_expression_class   s
   				N(   s   __doc__s   _index_expression_classs   index_expression(   s   _index_expression_classs   index_expression(    (    s>   /mit/python/lib/python2.3/site-packages/Scientific/indexing.pys   ?   s   