def __iter__(self):
        for row in self.blocks:
            for s in row:
                yield s
Iterate over all :class:`Mat` blocks by row and then by column.
dataset/ETHPy150Open OP2/PyOP2/pyop2/petsc_base.py/Mat.__iter__