lu_solve_linear_system
lu_solve_linear_system(A, index, x, size)
Solve linear equations Ax = b using LU decomposition A = LU where L is lower triangular matrix and U is upper triangular matrix. Input is factored matrix A=LU, integer array of pivot indices index[0->n-1], load vector x[0->n-1], and size of square matrix n. Note that A=LU and index[] are generated from method LUFactorLinearSystem). Also, solution vector is written directly over input load vector.
Kind: global function
Param | Type | Description |
---|---|---|
A | Array.<number> | Square matrix |
index | Array.<number> | Uint32Array | |
x | Array.<number> | |
size | number | matrix size ( 4x4 matrix has size 4) |