def gradient(self):
result = np.zeros((self.numc, <NUM_LIT:3>), float)<EOL>for index1 in range(self.numc):<EOL><INDENT>result[index1] = self.gradient_component(index1)<EOL><DEDENT>return result<EOL>
Compute the gradient of the energy for all atoms