def make_orthogonal(self): # orthogonalize the columns U, s, V = svd(self.Tm, full_matrices=False) self.Tm = np.diag(s).dot(V)