def inverse ( self ) : invr = np . linalg . inv ( self . affine_matrix ) return SymmOp ( invr )
calculating transformation matrix affine python
Returns inverse of transformation .
def inverse(self):
        """
        Returns inverse of transformation.
        """
        invr = np.linalg.inv(self.affine_matrix)
        return SymmOp(invr)