lu_factor_linear_system
Constants
- SMALL_NUMBER :
number
Error bound during calculations, must be something reasonably large to avoid floating point rounding errors
Functions
- 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.
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
| Param | Type | Description |
|---|---|---|
| A | Array.<number> | Square matrix, will be modified |
| index | Array.<number> | Uint32Array | will be written to |
| size | number | Size of the matrix ( 4x4 matrix has size 4 ) |