Navigation
index
modules
|
next
|
previous
|
Numpy and Scipy Documentation
»
SciPy v0.7 Reference Guide (DRAFT)
»
Sparse matrices (
scipy.sparse
)
»
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.
Previous topic
scipy.sparse.dia_matrix
Next topic
scipy.sparse.identity
This Page
Show Source
Edit page
Quick search
Navigation
index
modules
|
next
|
previous
|
Numpy and Scipy Documentation
»
SciPy v0.7 Reference Guide (DRAFT)
»
Sparse matrices (
scipy.sparse
)
»