lenskit.math.solve#

Efficient solver routines.

Functions

solve_cholesky(A, y)

Solve the system Ax=y for x with Cholesky decomposition.

lenskit.math.solve.solve_cholesky(A, y)#

Solve the system Ax=y for x with Cholesky decomposition.

This wraps torch.linalg.cholesky_ex() and torch.cholesky_solve() in an easier-to-use interface with error checking.

Parameters:
Returns:

the solution x

Return type:

ndarray[tuple[int], dtype[V]]