code: def size(self):
          
          # Since np.prod(()) == 1.0 we need to handle that by ourselves
          return (0 if self.shape == () else
                  int(np.prod(self.shape, dtype='int64')))
docs: Total number of grid points.