matlantis_features.features.phonon.symmetry.similarity_transformation(a: ndarray, b: ndarray) ndarray#

Calculate the similarity matrix, B = P^-1 A P.

Parameters
  • a (np.ndarray) – the change of basis matrix.

  • b (np.ndarray) – the input matrix.

Returns

Transformed matrix.

Return type

np.ndarray