Back to Sparse Direct Solver (SuperLU)
slu.solvers.solveTriangularLU
Solve Ax = b using precomputed LU factors.
Syntax
slu.solvers.solveTriangularLU(lu, b, options?)
Description
Solve Ax = b using precomputed LU factors. Given LU factors from `sparseLU`, solves the system: Pr * A * Pc = L * U => A * x = b => Pc^T * U^{-1} * L^{-1} * Pr * b = x This is much faster than `solveSparseCSC` when solving multiple systems with the same matrix, as the expensive factorization is reused.
Parameters
| Name | Description |
|---|---|
| lu | - LU factorization from sparseLU |
| b | - Right-hand side vector |
| options(optional) | - Solve options |
Returns
TriangularSolveResult