### Navigation

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

# scipy.sparse.dia_matrix.asformat

`dia_matrix.``asformat`(format)

  Return this matrix in a given sparse format

  Parameters : | format : {string, None} desired sparse matrix format None for no format conversion “csr” for csr_matrix format “csc” for csc_matrix format “lil” for lil_matrix format “dok” for dok_matrix format and so on

### Navigation

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