lenskit.math.solve#
Efficient solver routines.
Functions#
|
Solve the system \(A\mathbf{x}=\mathbf{y}\) for \(\mathbf{x}\) |
Module Contents#
- lenskit.math.solve.solve_cholesky(A, y)#
Solve the system \(A\mathbf{x}=\mathbf{y}\) for \(\mathbf{x}\) with Cholesky decomposition.
This wraps
torch.linalg.cholesky_ex()andtorch.cholesky_solve()in an easier-to-use interface with error checking.- Parameters:
A (lenskit.data.types.NPMatrix) – the left-hand matrix \(A\)
y (lenskit.data.types.NPVector) – the right-hand vector \(\mathbf{y}\)
- Returns:
the solution \(\mathbf{x}\)
- Return type:
Exported Aliases#
- lenskit.math.solve.NPMatrix#
Re-exported alias for
lenskit.data.types.NPMatrix.
- lenskit.math.solve.NPVector#
Re-exported alias for
lenskit.data.types.NPVector.