Verified that the matrix form of the data was equivalent to summing the gradients.