lenskit.matrix
We have some matrix-related utilities, since matrices are used so heavily in recommendation algorithms.
sparse_ratings
RatingMatrix
We use CSR-format sparse matrices in quite a few places. Since SciPy's sparse matrices are not directly usable from Numba, we have implemented a Numba-compiled CSR representation that can be used from accelerated algorithm implementations.
CSR
_CSR