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