This is documentation for an old release of SciPy (version 0.10.1). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
scipy.sparse.eye
-
scipy.sparse.eye(m, n, k=0, dtype='d', format=None)
eye(m, n) returns a sparse (m x n) matrix where the k-th diagonal
is all ones and everything else is zeros.