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

83 lines
2.2 KiB
YAML
Raw Normal View History

name: hdmf-common.sparse
id: hdmf-common.sparse
imports:
- hdmf-common.base
- nwb.language
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
CSRMatrix_indices:
name: CSRMatrix_indices
description: The column indices.
attributes:
array:
name: array
range: CSRMatrix_indices_Array
CSRMatrix_indices_Array:
name: CSRMatrix_indices_Array
is_a: Arraylike
attributes:
number of non-zero values:
name: number of non-zero values
range: uint
required: true
CSRMatrix_indptr:
name: CSRMatrix_indptr
description: The row index pointer.
attributes:
array:
name: array
range: CSRMatrix_indptr_Array
CSRMatrix_indptr_Array:
name: CSRMatrix_indptr_Array
is_a: Arraylike
attributes:
number of rows in the matrix + 1:
name: number of rows in the matrix + 1
range: uint
required: true
CSRMatrix_data:
name: CSRMatrix_data
description: The non-zero values in the matrix.
attributes:
array:
name: array
range: CSRMatrix_data_Array
CSRMatrix_data_Array:
name: CSRMatrix_data_Array
is_a: Arraylike
attributes:
number of non-zero values:
name: number of non-zero values
range: AnyType
required: true