lenskit.data.matrix.CSRStructure#
- class lenskit.data.matrix.CSRStructure#
Bases:
NamedTupleRepresentation of the compressed sparse row structure of a sparse matrix, without any data values.
- Stability:
- Caller (see Stability Levels).
- rowptrs: numpy.ndarray#
- colinds: numpy.ndarray#
- property nrows#
- property ncols#
- property nnz#
- property row_nnzs: lenskit.data.types.NPVector[numpy.int32]#
Array of row sizes (number of nonzeros in each row).
- Return type:
lenskit.data.types.NPVector[numpy.int32]