ó
£áSc           @` s©  d  Z  d d l m Z m Z m Z d d d d d d d	 d
 d d d d g Z d d l Z d d l m Z m	 Z	 d d l
 j Z d d l
 m Z m Z m Z d d l j j Z d d l m Z m Z d g d Z x$ e d ƒ D] Z e e ƒ e e <qÛ Wd j e ƒ Z d Z g  Z x* e D]" Z e e k re j e ƒ qqWd j e ƒ Z d „  Z  d „  Z! i d d 6d d 6d d 6d d  6d! d" 6d# d$ 6d% d& 6d' d( 6Z" d) „  Z# d S(*   s(   This module is for compatibility only.

i    (   t   divisiont   absolute_importt   print_functiont	   UserArrayt   squeezet   Matrixt   asarrayt   dott   kt   Numerict   LinearAlgebrat   identityt   multiplyt   typest   stringNi   (   R   R   (   R   R   R   (   t   matrixR   i   t    s   0123456789.-+jeELc         C` s   t  |  j t t ƒ ƒ S(   N(   t   evalt	   translatet   _tablet	   _todelete(   t   astr(    (    sQ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/matrix.pyt   _eval   s    c   
      C` sÒ   |  j  |  j d ƒ } g  } d } x© | D]¡ } | j d ƒ } g  } x0 | D]( } | j ƒ  } | j t t | ƒ ƒ qK W| d k r’ t | ƒ }	 n! t | ƒ |	 k r³ t d ƒ ‚ n  | d 7} | j | ƒ q) W| S(   Nt   ;i    t   ,s   Rows not the same size.i   (   t   findt   splitt   extendt   mapR   t   lent
   ValueErrort   append(
   t   datat   rowst   newdatat   countt   rowt   trowt   newrowt   colt   tempt   Ncols(    (    sQ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/matrix.pyt   _convert_from_string!   s"    
t   000t   0t   001t   1t   010t   2t   011t   3t   100t   4t   101t   5t   110t   6t   111t   7c         C` sd   t  |  ƒ } d } x  | d D] } | t | 7} q Wd } x | | d k r[ | d 7} q> W| | S(   NR   i   i    R,   (   t   octt   _lkup(   t   numt   ostrt   bint   cht   ind(    (    sQ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/matrix.pyt   _binary>   s    ($   t   __doc__t
   __future__R    R   R   t   __all__R   t
   user_arrayR   R   t   numpy.oldnumerict
   oldnumericR	   R   R   R   t   numpy.oldnumeric.linear_algebrat   linear_algebraR
   t   numpyR   R   R   t   NoneR   t   rangeR   t   chrt   joint	   _numcharsR   R   R   R*   R<   RB   (    (    (    sQ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/oldnumeric/matrix.pyt   <module>   s:   *		

