- SciPy v0.19.1 Reference Guide
- Sparse matrices (`scipy.sparse`)
- scipy.sparse.csr_matrix

- index
- modules
- next
- previous

#### Previous topic

scipy.sparse.csr_matrix.deg2rad

#### Next topic

scipy.sparse.csr_matrix.dot

# scipy.sparse.csr_matrix.diagonal

`csr_matrix.``diagonal`()

  Returns the main diagonal of the matrix

- © Copyright 2008-2016, The Scipy community.
- Last updated on Jun 21, 2017.
- Created using Sphinx 1.5.3.