@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
14 lines • 875 B
TypeScript
/**
* Assumes the system is factorized already. Use {@link lu_factor_linear_system} before if it isn't
* 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.
*
* @param {number[]} A Square matrix (flattened)
* @param {number[]|Uint32Array} index
* @param {number[]} x Load vector
* @param {number} size matrix size ( 4x4 matrix has size 4)
*/
export function lu_solve_linear_system(A: number[], index: number[] | Uint32Array, x: number[], size: number): void;
//# sourceMappingURL=lu_solve_linear_system.d.ts.map