@property
    def is_hermitian(self):
        def cond():
            yield self.is_square
            yield fuzzy_and(
                    self[i, i].is_real for i in range(self.rows))
            yield fuzzy_and(
                    (self[i, j] - self[j, i].conjugate()).is_zero
                    for i in range(self.rows)
                    for j in range(i + 1, self.cols))
        return fuzzy_and(i for i in cond())
Checks if the matrix is Hermitian.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.is_hermitian