### Navigation

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

# scipy.sparse.data

Base class for sparse matrice with a .data attribute

subclasses must provide a _with_data() method that creates a new matrix with the same sparsity pattern as self but with a different data array

Functions

`isscalarlike`(x) | Is x either a scalar, an array scalar, or a 0-dim array?

Classes

`spmatrix`([maxprint]) | This class provides a base class for all sparse matrices.

### Navigation

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