@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
14 lines • 996 B
TypeScript
/**
* Solve linear equations Ax = b using Crout's method. Input is square matrix A and load vector b.
* Solution x is written over load vector.
* The dimension of the matrix is specified in size. If error is found, method returns a 0.
*
* @see https://github.com/Kitware/VTK/blob/af928016f4041ad8a6a193d032355b909721fc95/Common/Core/vtkMath.cxx
*
* @param {number[]|Float32Array|Float64Array} A Matrix of coefficients
* @param {number[]|Float32Array|Float64Array} x Vector of right-hand constants for each equation, resulting solution for variables will also be written here
* @param {number} size size of the system. Size 1 means a single variable and a single equation, 2 means a 2 variable equation system etc
* @returns {boolean} true if solution found, false if factorization fails
*/
export function solve_linear_system(A: number[] | Float32Array | Float64Array, x: number[] | Float32Array | Float64Array, size: number): boolean;
//# sourceMappingURL=solve_linear_system.d.ts.map