ó
9xTc           @   sY   d  Z  d d l m Z d d l m Z d d l m Z d   Z e d k rU e   n  d S(   sĽ   
Enumeration of the 81 2-fold symmetry operations possible for reduced cells.
Show the matrix elements and the axis directions in direct space and
reciprocal space.
i˙˙˙˙(   t   division(   t   sgtbx(   t   flexc          C   sł   x§ t  j d g d d g d  D] }  t j |   } | j   d k rN q! n  | j |  j   si q! n  | j   r{ q! n  |  G| j   j   G| j	   j   j   GHq! Wd GHd  S(   Ni˙˙˙˙i	   i   t   OKi   (
   R   t   nested_loopR   t   rot_mxt   determinantt   multiplyt
   is_unit_mxt   infot   evt	   transpose(   t   elementst   r(    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/examples/reduced_cell_two_folds.pyt   run   s    '   /t   __main__N(	   t   __doc__t
   __future__R    t   cctbxR   t   cctbx.array_familyR   R   t   __name__(    (    (    sS   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/examples/reduced_cell_two_folds.pyt   <module>   s   		