lenskit.math.sparse =================== .. py:module:: lenskit.math.sparse .. autoapi-nested-parse:: Sparse matrix utility functions. Functions --------- .. autoapisummary:: lenskit.math.sparse.torch_sparse_from_scipy Module Contents --------------- .. py:function:: torch_sparse_from_scipy(M, layout = 'coo') Convert a SciPy :class:`sps.coo_array` into a torch sparse tensor. :Stability: Internal Exported Aliases ---------------- .. py:function:: lenskit.math.sparse.safe_tensor Re-exported alias for :py:func:`lenskit.torch.safe_tensor`.