@classmethod
    def identity(cls, n):
        return cls([[float(i==j) for i in xrange(n)] for j in xrange(n)])
MatrixN.identity(n) --> MatrixN
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/MatrixN.identity