sparsax.lu_solve¶
- sparsax.lu_solve(Ai, Aj, Ax, b)[source]¶
Solve
A x = bfor a general (non-symmetric) sparseAvia KLU.The LU analogue of
solve(): use it whenAis not symmetric positive definite — e.g.A = I - rho Wfor a row-standardised spatial weights matrixW. Works inside@jax.jit/lax.scan; the sparsity pattern’s fill-reducing analysis is computed once and cached, and underjax.vmapthe whole batch is solved in a single native FFI call.