superlu 0.2.3
superlu: ^0.2.3 copied to clipboard
Sparse linear system solver
SuperLU #
A Dart package for the direct solution of large, sparse, symmetric systems
of linear equations Ax = b using SuperLU.
Usage #
Include the appropriate Emscripten module in your page:
<script src="packages/superlu/zsuperlu.js"></script>
Compute the factorization of a matrix in compressed column form. Solve for one
or more right-hand-sides. Free up the LU matrices. rhs is overwritten with
the solution:
var factors = new Factors(vals, rowind, colptr);
factors.solve(n, 1, rhs);
factors.free();
Async #
SuperLU may also be run in a separate thread using the Web Worker API:
var superlu = new SuperLU();
var factors = await superlu.factor(a, asub, xa);
var x = await factors.solve(n, 1, rhs);
factors.free();