Expand description
WASM bindings for the RuVector sublinear-time solver.
Exposes a JsSolver struct that can be constructed from JavaScript and
used to solve sparse linear systems, compute Personalized PageRank, and
estimate solve complexity – all within the browser or any WASM runtime.
§Quick Start (JavaScript)
import { JsSolver } from "ruvector-solver-wasm";
const solver = new JsSolver();
// CSR representation of a 3x3 diagonally-dominant matrix.
const values = new Float32Array([4, -1, -1, 4, -1, -1, 4]);
const colIdx = new Uint32Array([0, 1, 0, 1, 2, 1, 2]);
const rowPtrs = new Uint32Array([0, 2, 5, 7]);
const rhs = new Float32Array([1, 0, 1]);
const result = solver.solve(values, colIdx, rowPtrs, 3, 3, rhs);
console.log(result);Structs§
- JsSolver
- Top-level solver handle exposed to JavaScript.