def eta_L2(self): # Note that V should be positive return self.V*np.sum(euclidean_distances(self.eta,squared=True))