def is_diagonal(self):
        for i in range(self.rows):
            for j in range(self.cols):
                if i != j and self[i, j]:
                    return False
        return True
If a L{TLSMemoryBIOProtocol} loses its connection unexpectedly, this is
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.is_diagonal--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/test/test_tls.py/TLSMemoryBIOTests.test_disorderlyShutdown