@classmethod
    def eye(cls, n):
        n = as_int(n)
        mat = [cls._sympify(0)]*n*n
        mat[::n + 1] = [cls._sympify(1)]*n
        return cls._new(n, n, mat)

    ############################
    # Mutable matrix operators #
    ############################
Return an n x n identity matrix.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/dense.py/DenseMatrix.eye