Skip to main content

lu_factor_linear_system

Constants

Error bound during calculations, must be something reasonably large to avoid floating point rounding errors

Functions

Factor linear equations Ax = b using LU decomposition A = LU where L is lower triangular matrix and U is upper triangular matrix. Input is square matrix A, integer array of pivot indices index[0->n-1], and size of square matrix n. Output factorization LU is in matrix A. If error is found, method returns false.

SMALL_NUMBER : number

Error bound during calculations, must be something reasonably large to avoid floating point rounding errors

Kind: global constant

lu_factor_linear_system(A, index, size) ⇒ boolean

Factor linear equations Ax = b using LU decomposition A = LU where L is lower triangular matrix and U is upper triangular matrix. Input is square matrix A, integer array of pivot indices index[0->n-1], and size of square matrix n. Output factorization LU is in matrix A. If error is found, method returns false.

Kind: global function
Returns: boolean - true if factorization succeeded, false otherwise

ParamTypeDescription
AArray.<number>Square matrix, will be modified
indexArray.<number> | Uint32Arraywill be written to
sizenumberSize of the matrix ( 4x4 matrix has size 4 )