(self)
return sum(level.A.nnz for level in self.levels) /\
            float(self.levels[0].A.nnz)
Operator complexity of this multigrid hierarchy.

        Defined as:
            Number of nonzeros in the matrix on all levels /
            Number of nonzeros in the matrix on the finest level
Operator complexity of this multigrid hierarchy.
Operator complexity of this multigrid hierarchy .
def operator_complexity(self):
        """Operator complexity of this multigrid hierarchy.

        Defined as:
            Number of nonzeros in the matrix on all levels /
            Number of nonzeros in the matrix on the finest level

        """
        return sum(level.A.nnz for level in self.levels) /\
            float(self.levels[0].A.nnz)
def operator_complexity ( self ) : return sum ( level . A . nnz for level in self . levels ) / float ( self . levels [ 0 ] . A . nnz )