³ò
SxaIc           @   s5   d  d k  l Z d  d k Z d „  Z d d „ Z d S(   iÿÿÿÿ(   t   divisionNc         C   sŠ   |  i  ƒ  } xw t d | ƒ D]f } d } x) t d | ƒ D] } | |  | | 7} q8 Wx+ t d | ƒ D] } |  | | c | <qd Wq Wd  S(   Ni    g        (   t
   square_dimt   range(   t   Mt   Nt   it   row_sumt   j(    (    s>   /home/kerl/pub_http_internet/doc/mhcoin/code/mhcoin_stochmx.pyt   row_normalize   s       s   %.4fc         C   s   |  i  ƒ  } xl t d | ƒ D][ } d } x? t d | ƒ D]. } | |  | | } | G| |  | | 7} q8 Wd G| | GHq Wd  S(   Ni    g        t   |(   R   R   (   R   t   fmtR   R   R   R   t   string(    (    s>   /home/kerl/pub_http_internet/doc/mhcoin/code/mhcoin_stochmx.pyt   print_matrix_with_row_sums   s      (   t
   __future__R    t	   sackmat_mR   R   (    (    (    s>   /home/kerl/pub_http_internet/doc/mhcoin/code/mhcoin_stochmx.pys   <module>   s   	
