lenskit.math.solve ================== .. py:module:: lenskit.math.solve .. autoapi-nested-parse:: Efficient solver routines. Functions --------- .. autoapisummary:: lenskit.math.solve.solve_cholesky Module Contents --------------- .. py:function:: solve_cholesky(A, y) Solve the system :math:`A\mathbf{x}=\mathbf{y}` for :math:`\mathbf{x}` with Cholesky decomposition. This wraps :func:`torch.linalg.cholesky_ex` and :func:`torch.cholesky_solve` in an easier-to-use interface with error checking. :param A: the left-hand matrix :math:`A` :param y: the right-hand vector :math:`\mathbf{y}` :returns: the solution :math:`\mathbf{x}` Exported Aliases ---------------- .. py:data:: lenskit.math.solve.NPMatrix Re-exported alias for :py:data:`lenskit.data.types.NPMatrix`. .. py:data:: lenskit.math.solve.NPVector Re-exported alias for :py:data:`lenskit.data.types.NPVector`.