Transform the elastic tensor for the primitive cell of Si to the corresponding elastic tensor in the conventional cell

It must be noted that all the related methods implemented in pymatgen, say convert_to_ieee, structure_transform, etc., only apply to pure roations of basis. So, how can I transform the elastic tensor for the primitive cell of Si to the corresponding elastic tensor in the conventional cell? This cannot be handled using the above method. See here for the related discussions.

Regards,
Zhao

I found the wolfram-based implementation here: TensorCoordinateTransform | Wolfram Function Repository.