def calc_W(self, S_b, S_w): # W is the array of eigenvectors, where each column is a vector. eigenvalues, W = eigh(S_b, S_w) return W