nwb-linkml/nwb_linkml/schema/hdmf-common.sparse.yaml

40 lines
1.1 KiB
YAML
Raw Normal View History

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