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

43 lines
1.2 KiB
YAML

name: hdmf-common.sparse
id: hdmf-common.sparse
imports:
- hdmf-common.base
- nwb.language
- 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:
name:
name: name
range: string
required: true
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: true
range: uint
required: true
indptr:
name: indptr
description: The row index pointer.
multivalued: true
range: uint
required: true
data:
name: data
description: The non-zero values in the matrix.
multivalued: true
range: AnyType
required: true
tree_root: true