### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Sparse matrices (`scipy.sparse`) »
- scipy.sparse.dok_matrix »

# scipy.sparse.dok_matrix.resize

`dok_matrix.``resize`(shape)

  Resize the matrix in-place to dimensions given by ‘shape’.

  Any non-zero elements that lie outside the new shape are removed.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Sparse matrices (`scipy.sparse`) »
- scipy.sparse.dok_matrix »