hdmf.common.sparse module¶
- class hdmf.common.sparse.CSRMatrix(data, indices=None, indptr=None, shape=None, name='csr_matrix')¶
Bases:
Container
- Parameters:
data (
csr_matrix
orndarray
orlist
ortuple
orDataset
orArray
orStrDataset
orHDMFDataset
orAbstractDataChunkIterator
) – the data to use for this CSRMatrix or CSR data array.If passing CSR data array, indices, indptr, and shape must also be providedindices (
ndarray
orlist
ortuple
orDataset
orArray
orStrDataset
orHDMFDataset
orAbstractDataChunkIterator
) – CSR index arrayindptr (
ndarray
orlist
ortuple
orDataset
orArray
orStrDataset
orHDMFDataset
orAbstractDataChunkIterator
) – CSR index pointer arrayshape (
ndarray
orlist
ortuple
orDataset
orArray
orStrDataset
orHDMFDataset
orAbstractDataChunkIterator
) – the shape of the matrixname (
str
) – the name to use for this when storing
- to_spmat()¶
- data_type = 'CSRMatrix'¶
- namespace = 'hdmf-common'¶