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