diff --git a/python/damask/_rotation.py b/python/damask/_rotation.py index 118234bf1..166863e70 100644 --- a/python/damask/_rotation.py +++ b/python/damask/_rotation.py @@ -307,7 +307,8 @@ class Rotation: p_m = self.quaternion[...,1:] q_o = other.quaternion[...,0:1] p_o = other.quaternion[...,1:] - q = (q_m*q_o - np.einsum('...i,...i',p_m,p_o).reshape(self.shape+(1,))) + qmo = q_m*q_o + q = (qmo - np.einsum('...i,...i',p_m,p_o).reshape(qmo.shape)) p = q_m*p_o + q_o*p_m + _P * np.cross(p_m,p_o) return self.copy(Rotation(np.block([q,p]))._standardize()) else: