def __init__(self, supercell, primitive_matrix, symprec=1e-5):
        """

        Parameters
        ----------
        supercell: PhonopyAtoms
            Supercell
        primitive_matrix: list of list or ndarray
            Transformation matrix to transform supercell to primitive cell
            such as:
               np.dot(primitive_matrix.T, supercell.get_cell())
            shape=(3,3)
        symprec: float, optional
            Tolerance to find overlapping atoms in primitive cell. The default
            values is 1e-5.

        """

        self._primitive_matrix = np.array(primitive_matrix,
                                          dtype='double', order='C')
        self._symprec = symprec
        self._p2s_map = None
        self._s2p_map = None
        self._p2p_map = None
        self._smallest_vectors = None
        self._multiplicity = None
        self._atomic_permutations = None
        self._primitive_cell(supercell)
        self._map_atomic_indices(supercell.get_scaled_positions())
        self._set_smallest_vectors(supercell)
        self._set_atomic_permutations(supercell)
def __init__ ( self , supercell , primitive_matrix , symprec = 1e-5 ) : self . _primitive_matrix = np . array ( primitive_matrix , dtype = 'double' , order = 'C' ) self . _symprec = symprec self . _p2s_map = None self . _s2p_map = None self . _p2p_map = None self . _smallest_vectors = None self . _multiplicity = None self . _atomic_permutations = None self . _primitive_cell ( supercell ) self . _map_atomic_indices ( supercell . get_scaled_positions ( ) ) self . _set_smallest_vectors ( supercell ) self . _set_atomic_permutations ( supercell )
Parameters
        ----------
        supercell: PhonopyAtoms
            Supercell
        primitive_matrix: list of list or ndarray
            Transformation matrix to transform supercell to primitive cell
            such as:
               np.dot(primitive_matrix.T, supercell.get_cell())
            shape=(3,3)
        symprec: float, optional
            Tolerance to find overlapping atoms in primitive cell. The default
            values is 1e-5.