prtools.index#
- class index(row, col, shape)[source]#
Sparse coordinate list (COO) index
- Parameters:
row (array_like) – List of row indices which contain nonzero data
col (array_like) – List of column indices which contain nonzero data
shape ((2,) array_like) – Dimensions of dense matrix
- nnz#
Number of nonzero entries in dense matrix
- Type:
int
- Return type: