Skip to main content

TRIDIAGONAL_SOLVE

Static TRIDIAGONAL_SOLVE 

Source
pub static TRIDIAGONAL_SOLVE: Prim
Expand description

The solution x of A x = b for each tridiagonal matrix A, given by its diagonals dl (dl[..., i] = A[i, i - 1], dl[..., 0] ignored), d, and du (du[..., i] = A[i, i + 1], the last one ignored), each [..., m], and b ([..., m, n]), as JAX’s tridiagonal_solve_p (Params::TridiagonalSolve): Gaussian elimination with partial pivoting, where singular systems give NaNs, or with perturb_singular, tiny pivots perturbed so that numerically singular systems give finite solutions. Differentiable in all inputs, linear in b.