scipy.sparse.identity — SciPy v1.7.1 Manual
docs.scipy.org › scipyscipy.sparse.identity¶ scipy.sparse. identity (n, dtype = 'd', format = None) [source] ¶ Identity matrix in sparse format. Returns an identity matrix with shape (n,n) using a given sparse format and dtype. Parameters n int. Shape of the identity matrix. dtype dtype, optional. Data type of the matrix. format str, optional
scipy.sparse.identity — SciPy v1.4.0 Reference Guide
docs.scipy.org › scipyDec 16, 2019 · scipy.sparse.identity(n, dtype='d', format=None) [source] ¶. Identity matrix in sparse format. Returns an identity matrix with shape (n,n) using a given sparse format and dtype. Parameters. nint. Shape of the identity matrix. dtypedtype, optional. Data type of the matrix. formatstr, optional.
scipy.sparse.identity — SciPy v1.4.1 Reference Guide
docs.scipy.org › scipyscipy.sparse.identity¶ scipy.sparse.identity (n, dtype='d', format=None) [source] ¶ Identity matrix in sparse format. Returns an identity matrix with shape (n,n) using a given sparse format and dtype. Parameters n int. Shape of the identity matrix. dtype dtype, optional. Data type of the matrix. format str, optional