SciPy v0.17.0 Reference Guide
Sparse matrices (
scipy.sparse
)
scipy.sparse.spmatrix
index
modules
modules
next
previous
Previous topic
scipy.sparse.spmatrix.copy
Next topic
scipy.sparse.spmatrix.dot
scipy.sparse.spmatrix.diagonal
¶
spmatrix.
diagonal
(
)
[source]
¶
Returns the main diagonal of the matrix