Physics, Science, Programming, Deep Dives, Thoughts And Theory.
self.velocities_norm=np.linalg.norm(self.velocities,axis=1) #Make distance matrix self.distance_matrix=np.zeros((self.n_molecules,self.n_molecules)) for i in range(self.distance_matrix.shape[0]): for j in range(self.distance_matrix.shape[1]):