Skip to main content

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

ParamTypeDescription
AArray.<number>Square matrix
indexArray.<number> | Uint32Array
xArray.<number>
sizenumbermatrix size ( 4x4 matrix has size 4)