code: def grid_complexity(self):
          
          return sum([level.A.shape[0] for level in self.levels]) /\
              float(self.levels[0].A.shape[0])
docs: Grid complexity of this multigrid hierarchy.
  
          Defined as:
              Number of unknowns on all levels /
              Number of unknowns on the finest level