lenskit.data.CSRStructure#
- class lenskit.data.CSRStructure(rowptrs, colinds, shape)#
Bases:
NamedTuple
Representation of the compressed sparse row structure of a sparse matrix, without any data values.
- Stability:
- Caller (see Stability Levels).
- Parameters:
- __init__()#
Methods
__init__
()count
(value, /)Return number of occurrences of value.
extent
(row)index
(value[, start, stop])Return first index of value.
row_cs
(row)Attributes
Alias for field number 1
ncols
nnz
nrows
Alias for field number 0
Alias for field number 2