matlantis_features.features.phonon.symmetry.get_permutations(pos_a: ndarray, pos_b: ndarray, symprec: float = 1e-05) ndarray#

Get the permuation index which enables pos_b = pos_a[ind].

Parameters
  • pos_a (np.ndarray) – coordinations before permutation.

  • pos_b (np.ndarray) – coordinations after permutation.

  • symprec (float, optional) – distance tolerance to find crystal symmetry. Defaults to 1e-05.

Returns

the permuation index.

Return type

np.ndarray