mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-10 00:34:29 +00:00
sneakers-the-rat
be21325123
- split off generated subclasses into "include" files, not sure if that's good, but in any case we have them separable now. - more work on cleanly un-nesting scalar and 1D-vector data into attributes and lists, respectively - brought the pydantic generator in-repo to do a bunch of overrides
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: hdmf-common.sparse
|
|
id: hdmf-common.sparse
|
|
imports:
|
|
- hdmf-common.base
|
|
- nwb.language
|
|
- hdmf-common.sparse.include
|
|
- hdmf-common.sparse
|
|
default_prefix: hdmf-common.sparse/
|
|
classes:
|
|
CSRMatrix:
|
|
name: CSRMatrix
|
|
description: A compressed sparse row matrix. Data are stored in the standard CSR
|
|
format, where column indices for row i are stored in indices[indptr[i]:indptr[i+1]]
|
|
and their corresponding values are stored in data[indptr[i]:indptr[i+1]].
|
|
is_a: Container
|
|
attributes:
|
|
shape:
|
|
name: shape
|
|
description: The shape (number of rows, number of columns) of this sparse
|
|
matrix.
|
|
range: uint
|
|
indices:
|
|
name: indices
|
|
description: The column indices.
|
|
multivalued: false
|
|
range: CSRMatrix__indices
|
|
required: true
|
|
indptr:
|
|
name: indptr
|
|
description: The row index pointer.
|
|
multivalued: false
|
|
range: CSRMatrix__indptr
|
|
required: true
|
|
data:
|
|
name: data
|
|
description: The non-zero values in the matrix.
|
|
multivalued: false
|
|
range: CSRMatrix__data
|
|
required: true
|